mirror of
https://github.com/YunoHost-Apps/wikijs_ynh.git
synced 2024-09-03 20:36:09 +02:00
backup configuration before upgrade
This commit is contained in:
parent
8a3f9797e3
commit
55576815ac
1 changed files with 1 additions and 1 deletions
|
@ -139,6 +139,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
ynh_backup_if_checksum_is_different --file="$final_path/config.yml"
|
||||||
cp -f ../conf/config.sample.yml "$final_path/config.yml"
|
cp -f ../conf/config.sample.yml "$final_path/config.yml"
|
||||||
|
|
||||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.yml"
|
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.yml"
|
||||||
|
@ -149,7 +150,6 @@ ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --ta
|
||||||
# STORE THE CONFIG FILE CHECKSUM
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_backup_if_checksum_is_different --file="$final_path/config.yml"
|
|
||||||
# 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="$final_path/config.yml"
|
ynh_store_file_checksum --file="$final_path/config.yml"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue