Skip to content

Commit 2d5c3f9

Browse files
authored
HotFix: Fix NetVisor env var (#9286)
- It was incorrect in the docs
1 parent ff00e90 commit 2d5c3f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ct/netvisor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function update_script() {
5252
cp /opt/netvisor.env.bak /opt/netvisor/.env
5353
LOCAL_IP="$(hostname -I | awk '{print $1}')"
5454
if ! grep -q "PUBLIC_URL"; then
55-
sed -i "\|_PATH=|a\NETVISOR_SERVER_PUBLIC_URL=http://${LOCAL_IP}:60072" /opt/netvisor/.env
55+
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
5858

install/netvisor-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ cat <<EOF >/opt/netvisor/.env
5454
### - SERVER
5555
NETVISOR_DATABASE_URL=postgresql://$PG_DB_USER:$PG_DB_PASS@localhost:5432/$PG_DB_NAME
5656
NETVISOR_WEB_EXTERNAL_PATH="/opt/netvisor/ui/build"
57-
NETVISOR_SERVER_PUBLIC_URL=http://${LOCAL_IP}:60072
57+
NETVISOR_PUBLIC_URL=http://${LOCAL_IP}:60072
5858
NETVISOR_SERVER_PORT=60072
5959
NETVISOR_LOG_LEVEL=info
6060
NETVISOR_INTEGRATED_DAEMON_URL=http://127.0.0.1:60073

0 commit comments

Comments
 (0)