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