Skip to content

Commit 43877a8

Browse files
authored
NetVisor: fix grep in update (#9334)
1 parent ff6cb3b commit 43877a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ct/netvisor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function update_script() {
5151

5252
cp /opt/netvisor.env.bak /opt/netvisor/.env
5353
LOCAL_IP="$(hostname -I | awk '{print $1}')"
54-
if ! grep -q "PUBLIC_URL"; then
54+
if ! grep -q "PUBLIC_URL" /opt/netvisor/.env; then
5555
sed -i "\|_PATH=|a\NETVISOR_PUBLIC_URL=http://${LOCAL_IP}:60072" /opt/netvisor/.env
5656
fi
5757
sed -i 's|_TARGET=.*$|_URL=http://127.0.0.1:60072|' /opt/netvisor/.env

0 commit comments

Comments
 (0)