mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
backup config before upgrade
This commit is contained in:
parent
52a3c52d21
commit
ff98087823
1 changed files with 1 additions and 1 deletions
|
@ -177,6 +177,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
|||
# MODIFY A CONFIG FILE
|
||||
#=================================================
|
||||
|
||||
ynh_backup_if_checksum_is_different --file="$final_path/$app/config/prod.secret.exs"
|
||||
cp -f ../conf/generated_config.exs "$final_path/$app/config/prod.secret.exs"
|
||||
|
||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/$app/config/prod.secret.exs"
|
||||
|
@ -221,7 +222,6 @@ popd
|
|||
# STORE THE CONFIG FILE CHECKSUM
|
||||
#=================================================
|
||||
|
||||
ynh_backup_if_checksum_is_different --file="$final_path/$app/config/prod.secret.exs"
|
||||
# Recalculate and store the checksum of the file for the next upgrade.
|
||||
ynh_store_file_checksum --file="$final_path/$app/config/prod.secret.exs"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue