From 31e4362d47b9dbb9fa46bd5a3cf8c58558693a51 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 10 Apr 2021 18:17:25 +0200 Subject: [PATCH] Fix boostrap/cach permissions --- scripts/install | 3 ++- scripts/restore | 3 ++- scripts/upgrade | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 6b9fda2..093f0d1 100755 --- a/scripts/install +++ b/scripts/install @@ -148,8 +148,9 @@ ynh_store_file_checksum "$final_path/.env" # Set permissions to app files chown -R $app: $final_path +chmod -R 750 $final_path/bootstrap/cache chown -R $app: $public_path -chmod -R 755 $public_path +chmod -R 750 $public_path #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index 9cabb9a..a8f46fd 100755 --- a/scripts/restore +++ b/scripts/restore @@ -75,8 +75,9 @@ ynh_restore_file --origin_path="$public_path" --not_mandatory # RESTORE USER RIGHTS #================================================= -# Restore permissions on app files +# Set permissions to app files chown -R $app: $final_path +chmod -R 750 $final_path/bootstrap/cache chown -R $app: $public_path chmod -R 750 $public_path diff --git a/scripts/upgrade b/scripts/upgrade index 3ee2b25..dffcfa0 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -178,9 +178,10 @@ fi # SECURE FILES AND DIRECTORIES #================================================= -# Set permissions on app files +# Set permissions to app files chown -R $app: $final_path -#chown -R $app: $public_path +chmod -R 750 $final_path/bootstrap/cache +chown -R $app: $public_path chmod -R 750 $public_path #=================================================