From 06ce34b3a22fb35dcbd4d8072b737c4936dde663 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 2 May 2022 00:01:03 +0200 Subject: [PATCH] Fix --- scripts/restore | 2 ++ scripts/upgrade | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/restore b/scripts/restore index 685b14c..810406b 100755 --- a/scripts/restore +++ b/scripts/restore @@ -101,6 +101,8 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./ 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" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index cf4c99c..2ac9d99 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -162,12 +162,6 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" chown root: "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app" -#================================================= -# SECURE FILES AND DIRECTORIES -#================================================= - -#set_permissions - #================================================= # RELOAD NGINX #=================================================