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