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