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:
parent
c4f438873d
commit
4dba70af6a
1 changed files with 8 additions and 2 deletions
|
@ -126,6 +126,14 @@ ynh_add_fpm_config
|
|||
|
||||
#=================================================
|
||||
# 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
|
||||
#=================================================
|
||||
|
@ -152,8 +160,6 @@ cp ../img/logo.png "$final_path/images"
|
|||
# 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
|
||||
ynh_store_file_checksum "$config"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue