From 459b873154d7b708ec960d2e35231bfc92cae48b Mon Sep 17 00:00:00 2001 From: Yalh Date: Tue, 15 Jan 2019 05:46:49 +0100 Subject: [PATCH] Fix upgrade steps --- scripts/upgrade | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index de94200..67585eb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -75,7 +75,7 @@ path_url=$(ynh_normalize_url_path $path_url) #================================================= # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source "$final_path" +#ynh_setup_source "$final_path" #================================================= # NGINX CONFIGURATION @@ -112,9 +112,19 @@ ynh_add_fpm_config ### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script. ### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it. -ynh_backup_if_checksum_is_different "$final_path/CONFIG_FILE" +#ynh_backup_if_checksum_is_different "$final_path/CONFIG_FILE" # Recalculate and store the checksum of the file for the next upgrade. -ynh_store_file_checksum "$final_path/CONFIG_FILE" +#ynh_store_file_checksum "$final_path/CONFIG_FILE" + +pushd $final_path +sudo ./concrete/bin/concrete5 c5:config -g set concrete.maintenance_mode true +popd +ynh_setup_source "$final_path" +pushd $final_path +sudo ./concrete/bin/concrete5 c5:update +sudo ./concrete/bin/concrete5 c5:config -g set concrete.maintenance_mode false +popd + #================================================= # SETUP LOGROTATE