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