From dcf2f134033eb5d2ab8d2141f913c0accf3ab55e Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 2 Dec 2021 10:27:55 +0100 Subject: [PATCH] Initialize $path_url and $path in change_url We should really have one instead of two of these... --- scripts/change_url | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index c550f55..01e8c06 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