From 43877a8b172031f407a70349d474a74d14a6cb97 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 21 Nov 2025 09:33:24 -0500 Subject: [PATCH] NetVisor: fix grep in update (#9334) --- ct/netvisor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/netvisor.sh b/ct/netvisor.sh index 95355bebf..63285ae6a 100644 --- a/ct/netvisor.sh +++ b/ct/netvisor.sh @@ -51,7 +51,7 @@ function update_script() { cp /opt/netvisor.env.bak /opt/netvisor/.env LOCAL_IP="$(hostname -I | awk '{print $1}')" - if ! grep -q "PUBLIC_URL"; then + if ! grep -q "PUBLIC_URL" /opt/netvisor/.env; then sed -i "\|_PATH=|a\NETVISOR_PUBLIC_URL=http://${LOCAL_IP}:60072" /opt/netvisor/.env fi sed -i 's|_TARGET=.*$|_URL=http://127.0.0.1:60072|' /opt/netvisor/.env