From c0d5b7004c609bc11d51c2a0b849039c755e2b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 8 Jul 2022 09:51:58 +0200 Subject: [PATCH] Update change_url --- scripts/change_url | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 42a2bed..804a6db 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -109,12 +109,9 @@ fi #================================================= ynh_script_progression --message="Updating systemd service..." --weight=1 -ynh_replace_string --match_string="Environment=ROOT_URL=*" --replace_string="https://$new_domain$new_path" --target_file="/etc/systemd/system/$app.service" +ynh_replace_string --match_string="Environment=ROOT_URL=https://$old_domain$old_path" --replace_string="Environment=ROOT_URL=https://$new_domain$new_path" --target_file="/etc/systemd/system/$app.service" systemctl daemon-reload -#sed -i 's/^Environment=ROOT_URL= .*$/Environment=ROOT_URL= Environment=ROOT_URL=https://$new_domain$new_path/' /etc/systemd/system/$app.service -#systemctl daemon-reload - #================================================= # GENERIC FINALISATION #=================================================