From 04a0707567c6c115c77547affbcaa2aac83950d7 Mon Sep 17 00:00:00 2001 From: Florent F Date: Sat, 10 Oct 2020 21:38:22 +0200 Subject: [PATCH] Rename config.json.example into config.json.default --- conf/{config.json.example => config.json.default} | 0 scripts/change_url | 2 +- scripts/install | 4 ++-- scripts/upgrade | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename conf/{config.json.example => config.json.default} (100%) diff --git a/conf/config.json.example b/conf/config.json.default similarity index 100% rename from conf/config.json.example rename to conf/config.json.default diff --git a/scripts/change_url b/scripts/change_url index dbd1cf3..3ce692b 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -115,7 +115,7 @@ ynh_backup_if_checksum_is_different --file="$final_path/config.json" domain=$new_domain path_url=$new_path -cp ../conf/config.json.example "$final_path/config.json" +cp ../conf/config.json.default "$final_path/config.json" ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json" ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/config.json" diff --git a/scripts/install b/scripts/install index 9c94610..11167ae 100644 --- a/scripts/install +++ b/scripts/install @@ -143,7 +143,7 @@ ynh_add_systemd_config #================================================= ynh_script_progression --message="Modifying a config file..." -cp ../conf/config.json.example "$final_path/config.json" +cp ../conf/config.json.default "$final_path/config.json" # Main config File ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json" @@ -156,7 +156,7 @@ ynh_replace_string --match_string="__APP__" --replace_string="$app" --t ynh_store_file_checksum --file="$final_path/config.json" -cp ../conf/.sequelizerc.example "$final_path/.sequelizerc" +cp ../conf/.sequelizerc.default "$final_path/.sequelizerc" # DB Config File ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$final_path/.sequelizerc" diff --git a/scripts/upgrade b/scripts/upgrade index 98a6a49..91fd63f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -139,7 +139,7 @@ ynh_script_progression --message="Modifying a config file..." --weight=2 ynh_backup_if_checksum_is_different --file="$final_path/config.json" -cp ../conf/config.json.example "$final_path/config.json" +cp ../conf/config.json.default "$final_path/config.json" # Main config File ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json"