From 6664d0fc385c73f5583b61c35983401e93342e55 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 16 Dec 2021 10:09:17 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index d225f25..f2dd682 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -82,17 +82,9 @@ then # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir" - # Download, check integrity, uncompress and patch the source from app.src - #ynh_setup_source --dest_dir="$final_path" - ynh_add_config --template=../conf/.env.example --destination=$final_path/.env - chmod 600 $final_path/.env fi -chmod 755 $final_path -chmod -R o-rwx $final_path -chown -R $app:www-data $final_path - #================================================= # NGINX CONFIGURATION #================================================= @@ -136,6 +128,11 @@ pushd $final_path php$phpversion artisan view:clear --no-interaction popd +chmod 755 $final_path +chmod -R o-rwx $final_path +chown -R $app:www-data $final_path +chmod 600 $final_path/.env + #================================================= # RELOAD NGINX #=================================================