mirror of
https://github.com/YunoHost-Apps/distbin_ynh.git
synced 2024-09-03 18:26:10 +02:00
backup config before upgrade
This commit is contained in:
parent
36989be7c7
commit
004f5d6764
1 changed files with 1 additions and 1 deletions
|
@ -153,6 +153,7 @@ popd
|
|||
#=================================================
|
||||
ynh_print_info --message="Modifying config file..."
|
||||
|
||||
ynh_backup_if_checksum_is_different --file="$final_path/.env"
|
||||
cp "../conf/.env" "$final_path/.env"
|
||||
|
||||
if [ "$path_url" == "/" ]
|
||||
|
@ -172,7 +173,6 @@ ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path"
|
|||
#=================================================
|
||||
ynh_print_info --message="Storing the config file checksum..."
|
||||
|
||||
ynh_backup_if_checksum_is_different --file="$final_path/.env"
|
||||
# Recalculate and store the checksum of the file for the next upgrade.
|
||||
ynh_store_file_checksum --file="$final_path/.env"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue