1
0
Fork 0
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:
yalh76 2019-06-01 06:55:42 +02:00
parent 36989be7c7
commit 004f5d6764

View file

@ -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"