From be1c5cdc739e4f95450d8f16b35bd30c8ced64df Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 2 Jul 2022 21:50:43 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 85bbf72..829886c 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -133,17 +133,6 @@ ynh_install_composer ynh_exec_warn_less ynh_composer_exec --commands="dump-autoload" -#================================================= -# BUILDING -#================================================= -ynh_script_progression --message="Building..." - -pushd "$final_path" - php$phpversion artisan migrate -n --force - php$phpversion artisan config:clear -n - php$phpversion artisan config:cache -n -popd - #================================================= # UPDATE A CONFIG FILE #================================================= @@ -154,9 +143,15 @@ ynh_backup_if_checksum_is_different --file="$final_path/.env" ynh_store_file_checksum --file="$final_path/.env" #================================================= -# SECURE FILES AND DIRECTORIES +# BUILDING #================================================= -ynh_script_progression --message="Securing files and directories..." --weight=1 +ynh_script_progression --message="Building..." + +pushd "$final_path" + php$phpversion artisan migrate -n --force + php$phpversion artisan config:clear -n + php$phpversion artisan config:cache -n +popd # Set permissions on app files chown -R $app:www-data $final_path