1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/concrete5_ynh.git synced 2024-09-03 18:25:54 +02:00

Fix upgrade steps

This commit is contained in:
Yalh 2019-01-15 05:46:49 +01:00
parent 78e319cb97
commit 459b873154

View file

@ -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