From 50fb38c5c39b48c6554d5768deb822d0721c6c53 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 17 Apr 2021 09:42:55 +0200 Subject: [PATCH] Fix --- scripts/restore | 3 ++- scripts/upgrade | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index 4192e0d..e1ec9fc 100644 --- a/scripts/restore +++ b/scripts/restore @@ -64,7 +64,8 @@ ynh_restore_file --origin_path="$final_path" #================================================= # Restore permissions on app files -chown -R $app: $final_path +chown -R $app:www-data $final_path +chmod o-rwx $final_path #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 6cc72ef..72500ca 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -91,7 +91,8 @@ ynh_add_nginx_config #================================================= # Set permissions on app files -chown -R $app: $final_path +chown -R $app:www-data $final_path +chmod o-rwx $final_path #================================================= # RELOAD NGINX