From 3fe6c68ef761fc99170715933739677e0180f4a5 Mon Sep 17 00:00:00 2001 From: Memo <58190287+memo-567@users.noreply.github.com> Date: Fri, 8 Apr 2022 07:02:31 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index cfc329f..636f17e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -123,10 +123,6 @@ then fi fi -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" -chmod -R 775 $final_path/storage #================================================= # NGINX CONFIGURATION @@ -194,6 +190,16 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" chown root: "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app" +#================================================= +# SECURE FILES AND DIRECTORIES +#================================================= + +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" +hmod -R 775 $final_path/storage +## set_permissions + #================================================= # RELOAD NGINX #=================================================