diff --git a/scripts/change_url b/scripts/change_url index a068fb0..fa8970b 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -104,6 +104,13 @@ then ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" fi +#================================================= +# SPECIFIC MODIFICATIONS +#================================================= +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" + #================================================= # GENERIC FINALISATION #=================================================