From 61f93665ea08ab852f322b4f29bb278da6e3c2c9 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 21 Mar 2022 14:10:22 +0100 Subject: [PATCH] Update change_url --- scripts/change_url | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index e15f413..313cccb 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -30,6 +30,7 @@ ynh_script_progression --message="Loading installation settings..." final_path=$(ynh_app_setting_get --app=$app --key=final_path) # Add settings here as needed by your application +datadir=$(ynh_app_setting_get --app=$app --key=datadir) port=$(ynh_app_setting_get --app=$app --key=port) scgi_port=$(ynh_app_setting_get --app=$app --key=scgi_port) rt_port=$(ynh_app_setting_get --app=$app --key=rt_port) @@ -109,8 +110,15 @@ fi #================================================= # SPECIFIC MODIFICATIONS #================================================= -# ... +# SETUP SYSTEMD #================================================= +ynh_script_progression --message="Upgrading systemd configuration..." + +path_url=$new_path +domain=$new_domain + +# Create a dedicated systemd config +ynh_add_systemd_config --service=$app --template="flood.service" #================================================= # GENERIC FINALISATION