From c8e8762566d8573234ed824ac7fe024747251609 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 18 May 2022 09:32:26 +0200 Subject: [PATCH] Update restore --- scripts/restore | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/scripts/restore b/scripts/restore index 8a3617a..70d862b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -66,22 +66,26 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$final_path" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + #================================================= # RESTORE USER RIGHTS #================================================= -# Set permissions on app files -chown -R root: $final_path +# # Set permissions on app files +# chown -R root: $final_path -# Remove permission to others than $app and www-data (nginx user) -chmod o-rwx $final_path -chown $app:www-data $final_path +# # Remove permission to others than $app and www-data (nginx user) +# chmod o-rwx $final_path +# chown $app:www-data $final_path -chown -R $app $final_path/assets -chown -R $app $final_path/protected/config -chown -R $app $final_path/protected/modules -chown -R $app $final_path/protected/runtime -chown -R $app $final_path/uploads/* +# chown -R $app $final_path/assets +# chown -R $app $final_path/protected/config +# chown -R $app $final_path/protected/modules +# chown -R $app $final_path/protected/runtime +# chown -R $app $final_path/uploads/* #================================================= # REINSTALL DEPENDENCIES