From 81842b4e56294bdbe2e115e611b8e2bd9cbe2e88 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sun, 23 May 2021 00:57:47 +0530 Subject: [PATCH] added port init --- scripts/change_url | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index 5573a83..d902869 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -28,7 +28,7 @@ ynh_script_progression --message="Loading installation settings..." # Needed for helper "ynh_add_nginx_config" final_path=$(ynh_app_setting_get --app=$app --key=final_path) -port=${ynh_app_setting_get --app=$app --key=port} +app_port=$()ynh_app_setting_get --app=$app --key=port) #================================================= # BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP @@ -87,6 +87,7 @@ then # Set global variables for NGINX helper domain="$old_domain" path_url="$new_path" + port="$app_port" match_string=$(echo \"BasePathOverride\": \"$old_path\") target_string=$(echo \"BasePathOverride\": \"$new_path\") sed --in-place "s@${match_string}@${target_string}@g" "$final_path/.config/Jackett/ServerConfig.json"