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 #=================================================