From a0eefa185ca61710108f540fa5b97e160c62493a Mon Sep 17 00:00:00 2001 From: Hayden Date: Mon, 12 Feb 2024 09:31:53 -0800 Subject: [PATCH] Update change_url (unfinished, dont test yet) --- scripts/change_url | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 4ba8cf7..c00e68f 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -16,6 +16,17 @@ ynh_script_progression --message="Updating NGINX web server configuration..." -- ynh_change_url_nginx_config +# +# MODIFY URL IN APP CONFIG +# +ynh_script_progression --message="Updating app configuration..." --weight=1 + +# Try a sed command? nowhere near finished I'll finish it soon enough +if [ "$new_path" == "/" ] && [ "$old_path" == "/" ]; then + sed 's/${old_domain//\//\\\/}/${new_domain//\//\\\/}/g' +else + sed 's/${old_domain//\//\\\/}/ + #================================================= # END OF SCRIPT #=================================================