Commit 7a315191 authored by Ivan Tyagov's avatar Ivan Tyagov

Default ethernet interface name best bet is eth0, despite it can be different ...

parent cb91d640
......@@ -4,7 +4,7 @@
# it requires socat command
ZOPE_PIDS="$(slapos node | grep 'zope\|jupyter-lab' | awk '{print substr($0, 91, 5);}')"
LOCAL_IPv4="$(/sbin/ifconfig ens3 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')"
LOCAL_IPv4="$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')"
port=20000
......@@ -29,4 +29,4 @@ for pid in $ZOPE_PIDS;
# increase port base
port=$((port+1))
done
\ No newline at end of file
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment