1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/opensondage_ynh.git synced 2024-09-03 19:46:28 +02:00

Backup config file before replacing it

This commit is contained in:
Jean-Baptiste Holcroft 2017-10-27 21:19:47 +02:00
parent c4f438873d
commit 4dba70af6a

View file

@ -126,6 +126,14 @@ ynh_add_fpm_config
#================================================= #=================================================
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#=================================================
#=================================================
# STORE THE CHECKSUM OF THE CONFIG FILE
#=================================================
# Verify the checksum and backup the file if it's different
ynh_backup_if_checksum_is_different "$config"
#================================================= #=================================================
# Create config.php # Create config.php
#================================================= #=================================================
@ -152,8 +160,6 @@ cp ../img/logo.png "$final_path/images"
# STORE THE CHECKSUM OF THE CONFIG FILE # STORE THE CHECKSUM OF THE CONFIG FILE
#================================================= #=================================================
# Verify the checksum and backup the file if it's different
ynh_backup_if_checksum_is_different "$config"
# Recalculate and store the config file checksum into the app settings # Recalculate and store the config file checksum into the app settings
ynh_store_file_checksum "$config" ynh_store_file_checksum "$config"