From 22560178a08a40a82d036c336c5a440fa0d3b27f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 15 Jan 2022 13:11:40 +0100 Subject: [PATCH] Update restore --- scripts/restore | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index a7cbe40..6032d8f 100755 --- a/scripts/restore +++ b/scripts/restore @@ -69,9 +69,12 @@ ynh_replace_string --match_string "ENABLED=0" --replace_string "ENABLED=1" --tar #================================================= # SECURE FILES AND DIRECTORIES #================================================= -ynh_script_progression --message="Protecting directory..." +ynh_script_progression --message="Protecting directory..." --weight=1 -set_permission +chown -R $app:$app /etc/$app +chmod u=rwX,g=rX,o= -R /etc/$app +chown -R $app:$app /var/log/$app +chmod u=rwX,g=rX,o= -R /var/log/$app #================================================= # RESTORE THE LOGROTATE CONFIGURATION