From b17c7909cc2748099338708fe011b5306144104f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sat, 28 Aug 2021 10:54:58 +0200 Subject: [PATCH] cron owner should be root --- scripts/install | 1 + scripts/upgrade | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 46f2b70..be73d6f 100755 --- a/scripts/install +++ b/scripts/install @@ -130,6 +130,7 @@ done ynh_script_progression --message="Setting up cron..." ynh_add_config --template="../conf/freshrss.cron" --destination="/etc/cron.d/$app" +chown root: "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f32ef97..1207a73 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -92,7 +92,7 @@ ynh_script_progression --message="Making sure dedicated system user exists..." # Create a dedicated user (if not existing) ynh_system_user_create --username=$app --home_dir="$final_path" - + #================================================= # UPGRADE DEPENDENCIES #================================================= @@ -146,6 +146,7 @@ chown -R $app:www-data "$final_path" ynh_script_progression --message="Setting up cron..." ynh_add_config --template="../conf/freshrss.cron" --destination="/etc/cron.d/$app" +chown root: "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app" if [ -f /tmp/FreshRSS.log ]; then