From 578ce8d4f413fc9054c4b8d554941dd8de94af88 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 11 Dec 2021 10:32:36 +0100 Subject: [PATCH] Rights for cron --- scripts/install | 1 + scripts/restore | 3 +++ scripts/upgrade | 3 +++ 3 files changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index eab4de0f..b2a4a6be 100644 --- a/scripts/install +++ b/scripts/install @@ -182,6 +182,7 @@ popd ynh_script_progression --message="Installing the cron file..." ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" + chown root: "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app" diff --git a/scripts/restore b/scripts/restore index 65975726..a306338b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -92,6 +92,9 @@ ynh_script_progression --message="Restoring the cron file..." ynh_restore_file --origin_path="/etc/cron.d/$app" +chown root: "/etc/cron.d/$app" +chmod 644 "/etc/cron.d/$app" + #================================================= # CREATE LOG FILE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1fc90916..79062ac8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -246,6 +246,9 @@ ynh_script_progression --message="Upgrading cron file..." ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" +chown root: "/etc/cron.d/$app" +chmod 644 "/etc/cron.d/$app" + #================================================= # SETUP SUPERVISOR #=================================================