From f9128326e3a7f7d9d36039af99b93c49640ee44c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 10 Jun 2023 21:28:57 +0200 Subject: [PATCH] Fix restore script --- scripts/restore | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/restore b/scripts/restore index 2ee0f09..5257f08 100755 --- a/scripts/restore +++ b/scripts/restore @@ -26,12 +26,8 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" -#================================================= -# RESTORE USER RIGHTS -#================================================= - -# Restore permissions on app files -chown -R root: "$install_dir" +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" #================================================= # SPECIFIC RESTORATION