1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/civicrm_drupal7_ynh.git synced 2024-09-03 18:16:19 +02:00

backup configuration before upgrade

This commit is contained in:
yalh76 2019-06-01 06:53:42 +02:00
parent dce85f6336
commit 69a5325454

View file

@ -130,6 +130,7 @@ ynh_install_composer --phpversion="7.2" --workdir="$final_path/.composer"
#=================================================
ynh_print_info --message="Updating Drupal..."
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php"
export PATH="$final_path/.composer/vendor/bin:$PATH"
sudo -u $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 1
@ -150,7 +151,6 @@ sudo -u $app env PATH=$PATH drush @$app vset --exact maintenance_mode 0
# STORE THE CONFIG FILE CHECKSUM
#=================================================
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php"
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php"