1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/drupal_ynh.git synced 2024-09-03 18:35:53 +02:00

backup config before upgrade

This commit is contained in:
yalh76 2019-06-01 06:58:18 +02:00
parent f8e2e2d6b3
commit 81713c795e

View file

@ -131,6 +131,7 @@ update-alternatives --set php /usr/bin/php7.0
#=================================================
ynh_print_info --message="Updating Drupal..."
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php"
export PATH="$final_path/vendor/bin:$PATH"
#sudo -u $app env PATH=$PATH drush @$app.prod cache-clear all
@ -154,7 +155,6 @@ popd
# 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"