mirror of
https://github.com/YunoHost-Apps/drupal7_ynh.git
synced 2024-09-03 18:26:19 +02:00
backup config before upgrade
This commit is contained in:
parent
b8fb714bdf
commit
918014e66c
1 changed files with 1 additions and 1 deletions
|
@ -127,6 +127,7 @@ ynh_install_composer --phpversion="7.2" --workdir="$final_path/.composer"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info --message="Updating Drupal..."
|
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"
|
export PATH="$final_path/.composer/vendor/bin:$PATH"
|
||||||
|
|
||||||
sudo -u $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 1
|
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
|
# 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.
|
# Recalculate and store the checksum of the file for the next upgrade.
|
||||||
ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php"
|
ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue