diff --git a/scripts/change_url b/scripts/change_url index e1b3b8c..6f551ee 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -109,7 +109,10 @@ fi #================================================= ynh_script_progression --message="Updating systemd service..." --weight=1 -ynh_replace_string --match_string="Environment=ROOT_URL= *" --replace_string="Environment=ROOT_URL=https://$new_domain$new_path" --target_file="/etc/systemd/system/$app.service" +#ynh_replace_string --match_string="Environment=ROOT_URL= *" --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 #=================================================