From 918014e66c7fcdee16c44967605d7484df938386 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 1 Jun 2019 06:56:24 +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 3dceb2d..da68349 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -127,6 +127,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 @@ -141,7 +142,6 @@ sudo -u $app env PATH=$PATH drush @$app l10n-update # 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"