From 8d8ebfd4537994c8b0e544ede7318e37ba9022b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 17 Nov 2019 11:00:54 +0100 Subject: [PATCH] remove old cron log and have per app log to fix permission --- conf/freshrss.cron | 2 +- scripts/upgrade | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/freshrss.cron b/conf/freshrss.cron index 0f5321c..659ed47 100644 --- a/conf/freshrss.cron +++ b/conf/freshrss.cron @@ -1 +1 @@ -*/10 * * * * __APP__ /usr/bin/php7.0 __FINALPATH__/app/actualize_script.php >/tmp/FreshRSS.log 2>&1 +*/10 * * * * __APP__ /usr/bin/php7.0 __FINALPATH__/app/actualize_script.php >/tmp/__APP__.log 2>&1 diff --git a/scripts/upgrade b/scripts/upgrade index 0e8bf00..bb0d7ba 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -156,6 +156,10 @@ ynh_replace_string "__APP__" $app ../conf/freshrss.cron cp ../conf/freshrss.cron "$cron_path" chmod 644 "$cron_path" +if [ -f /tmp/FreshRSS.log ]; then + ynh_secure_remove /tmp/FreshRSS.log +fi + #================================================= # GENERIC FINALIZATION #=================================================