From 81713c795eadbac3150ec73406d9024d6fe21c4d Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 1 Jun 2019 06:58:18 +0200 Subject: [PATCH] backup config before upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 647b197..6c5f843 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"