From 09aa97df66cddcf21dd646895772fc8e19e29eef Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 30 Sep 2021 11:44:55 +0200 Subject: [PATCH] Fix change_url --- scripts/change_url | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index c177364..35c55c5 100755 --- a/scripts/change_url +++ b/scripts/change_url @@ -88,8 +88,12 @@ then # Set global variables for NGINX helper domain="$old_domain" path_url="$new_path" + path="$new_path" # Create a dedicated NGINX config ynh_add_nginx_config +else + path_url="$old_path" + path="$old_path" fi # Change the domain for NGINX @@ -121,7 +125,7 @@ chown $app "$final_path/.data/config.xml" #================================================= ynh_script_progression --message="Starting a systemd service..." --time --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Starting Web Server" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Application started" #================================================= # RELOAD NGINX