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 #=================================================