From 5da8aa5ec2529369010509b3e133d2857c763243 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 2 Oct 2021 21:00:01 +0200 Subject: [PATCH] Fix --- scripts/install | 3 ++- scripts/remove | 1 + scripts/restore | 2 ++ scripts/upgrade | 3 ++- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index ebeb4f9..b5d96b5 100644 --- a/scripts/install +++ b/scripts/install @@ -157,7 +157,8 @@ ynh_add_systemd_config ynh_script_progression --message="Setuping a cron..." --weight=1 ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app" -chmod 644 /etc/cron.d/$app +chown root: "/etc/cron.d/$app" +chmod 644 "/etc/cron.d/$app" #================================================= # SETUP LOGROTATE diff --git a/scripts/remove b/scripts/remove index 8566bf5..2382b33 100644 --- a/scripts/remove +++ b/scripts/remove @@ -88,6 +88,7 @@ ynh_remove_logrotate #================================================= # REMOVE VARIOUS FILES #================================================= +ynh_script_progression --message="Removing the cron file..." --weight=1 # Remove a cron file ynh_secure_remove --file="/etc/cron.d/$app" diff --git a/scripts/restore b/scripts/restore index ed40dce..520d561 100644 --- a/scripts/restore +++ b/scripts/restore @@ -132,6 +132,8 @@ ynh_systemd_action --service_name=$app --action=start --log_path=systemd ynh_script_progression --message="Restoring various files..." --weight=1 ynh_restore_file --origin_path="/etc/cron.d/$app" +chown root: "/etc/cron.d/$app" +chmod 644 "/etc/cron.d/$app" #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index c5e9400..6ffa7dc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -146,7 +146,8 @@ ynh_add_systemd_config ynh_script_progression --message="Setuping a cron..." --weight=1 ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app" -chmod 644 /etc/cron.d/$app +chown root: "/etc/cron.d/$app" +chmod 644 "/etc/cron.d/$app" #================================================= # GENERIC FINALIZATION