From 6c3ed1b6912c2ac0bdee1c155c62f8a39c006299 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 19 Feb 2026 10:06:43 -0500 Subject: [PATCH] Fix protocol variable usage in patchmon.sh --- ct/patchmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/patchmon.sh b/ct/patchmon.sh index 16000d850..5361650c0 100644 --- a/ct/patchmon.sh +++ b/ct/patchmon.sh @@ -54,7 +54,7 @@ function update_script() { PROTO="$(sed -n '/SERVER_PROTOCOL/s/[^=]*=//p' /opt/backend.env)" HOST="$(sed -n '/SERVER_HOST/s/[^=]*=//p' /opt/backend.env)" SERVER_PORT="$(sed -n '/SERVER_PORT/s/[^=]*=//p' /opt/backend.env)" - [[ "${PROTO:-http}" == "http" ]] && PORT=":3001" + [[ "$PROTO" == "http" ]] && PORT=":3001" sed -i 's/PORT=3399/PORT=3001/' /opt/backend.env sed -i -e "s/VERSION=.*/VERSION=$VERSION/" \ -e "\|VITE_API_URL=|s|http.*|${PROTO:-http}://${HOST:-$LOCAL_IP}${PORT:-}/api/v1|" /opt/frontend.env