diff --git a/scripts/change_url b/scripts/change_url index 0f438f1..25d3aa0 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -112,20 +112,10 @@ fi #================================================= # MODIFY THE CONFIG FILE #================================================= +ynh_script_progression --message="Modifying a config file..." -configfile="$final_path/code/config/.env" - -cp ../conf/env.prod "$configfile" - -ynh_replace_string --match_string="__REDIS_DB__" --replace_string="$redis_db" --target_file="$configfile" -ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$configfile" -ynh_replace_string --match_string="__DOMAIN__" --replace_string="$new_domain" --target_file="$configfile" -ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_name" --target_file="$configfile" -ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$configfile" -ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$configfile" -ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$configfile" -ynh_replace_string --match_string="__KEY__" --replace_string="$key" --target_file="$configfile" - +domain=$new_domain +ynh_add_config --template="../conf/env.prod" --destination="$final_path/code/config/.env" #================================================= # MODIFY THE FEDERATION