From 630addddf69dc27b4c5f01d2dcf3d95e600b6ccc Mon Sep 17 00:00:00 2001 From: Limezy Date: Sat, 4 Jun 2022 15:39:50 +0700 Subject: [PATCH] Update change_url --- scripts/change_url | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index 495b7eb..9dd70d8 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -108,7 +108,16 @@ fi #================================================= # SPECIFIC MODIFICATIONS #================================================= -# ... + +ynh_script_progression --message="Updating the configuration file..." --weight=1 +domain=$new_domain +path_url=$new_path + +ynh_secure_remove --file="$final_path/build/config/options.yml" +ynh_add_config --template="options.yml" --destination="$final_path/build/config/options.yml" +chmod 400 "$final_path/build/config/options.yml" +chown $app:$app "$final_path/build/config/options.yml" + #================================================= #=================================================