From 02c7dd53f072005e2e790173c73d4c05213227fd Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 18 May 2021 15:08:16 +0200 Subject: [PATCH] Update restore --- scripts/restore | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index a086dc1..30bd6b5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -76,8 +76,11 @@ ynh_restore_file --origin_path="$public_path" --not_mandatory #================================================= # Set permissions to app files -chown -R $app: $final_path -chmod 750 $final_path/bootstrap/cache +chmod 750 "$final_path" +chmod 750 "$final_path/bootstrap/cache" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + chown -R $app: $public_path chmod 755 $public_path