We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff6cb3b commit 43877a8Copy full SHA for 43877a8
ct/netvisor.sh
@@ -51,7 +51,7 @@ function update_script() {
51
52
cp /opt/netvisor.env.bak /opt/netvisor/.env
53
LOCAL_IP="$(hostname -I | awk '{print $1}')"
54
- if ! grep -q "PUBLIC_URL"; then
+ if ! grep -q "PUBLIC_URL" /opt/netvisor/.env; then
55
sed -i "\|_PATH=|a\NETVISOR_PUBLIC_URL=http://${LOCAL_IP}:60072" /opt/netvisor/.env
56
fi
57
sed -i 's|_TARGET=.*$|_URL=http://127.0.0.1:60072|' /opt/netvisor/.env
0 commit comments