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:
parent
f8e2e2d6b3
commit
81713c795e
1 changed files with 1 additions and 1 deletions
|
@ -131,6 +131,7 @@ update-alternatives --set php /usr/bin/php7.0
|
||||||
#=================================================
|
#=================================================
|
||||||
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/vendor/bin:$PATH"
|
export PATH="$final_path/vendor/bin:$PATH"
|
||||||
|
|
||||||
#sudo -u $app env PATH=$PATH drush @$app.prod cache-clear all
|
#sudo -u $app env PATH=$PATH drush @$app.prod cache-clear all
|
||||||
|
@ -154,7 +155,6 @@ popd
|
||||||
# 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