mirror of
https://github.com/YunoHost-Apps/mobilizon_ynh.git
synced 2024-09-03 19:46:19 +02:00
backup config before modifying it
This commit is contained in:
parent
d64d7b8be4
commit
af9c8774d3
1 changed files with 1 additions and 1 deletions
|
@ -134,6 +134,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
config="$final_path/$app/.env"
|
config="$final_path/$app/.env"
|
||||||
|
ynh_backup_if_checksum_is_different --file="$config"
|
||||||
cp ../conf/.env "$config"
|
cp ../conf/.env "$config"
|
||||||
|
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$config"
|
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$config"
|
||||||
|
@ -183,7 +184,6 @@ popd
|
||||||
# STORE THE CONFIG FILE CHECKSUM
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_backup_if_checksum_is_different --file="$config"
|
|
||||||
# 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="$config"
|
ynh_store_file_checksum --file="$config"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue