1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/codimd_ynh.git synced 2024-09-03 18:16:32 +02:00

default -> example

Reverting to previous terminologie...
This commit is contained in:
ericgaspar 2020-10-13 20:49:08 +02:00
parent cd594d59b3
commit 05d5d8c74a
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 4 additions and 4 deletions

View file

@ -115,7 +115,7 @@ ynh_backup_if_checksum_is_different --file="$final_path/config.json"
domain=$new_domain domain=$new_domain
path_url=$new_path path_url=$new_path
cp ../conf/config.json.default "$final_path/config.json" cp ../conf/config.json.example "$final_path/config.json"
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$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" ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/config.json"

View file

@ -143,7 +143,7 @@ ynh_add_systemd_config
#================================================= #=================================================
ynh_script_progression --message="Modifying a config file..." ynh_script_progression --message="Modifying a config file..."
cp ../conf/config.json.default "$final_path/config.json" cp ../conf/config.json.example "$final_path/config.json"
# Main config File # Main config File
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json" 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" ynh_store_file_checksum --file="$final_path/config.json"
cp ../conf/.sequelizerc.default "$final_path/.sequelizerc" cp ../conf/.sequelizerc.example "$final_path/.sequelizerc"
# DB Config File # DB Config File
ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$final_path/.sequelizerc" ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$final_path/.sequelizerc"

View file

@ -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" ynh_backup_if_checksum_is_different --file="$final_path/config.json"
cp ../conf/config.json.default "$final_path/config.json" cp ../conf/config.json.example "$final_path/config.json"
# Main config File # Main config File
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json" ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json"