Commit 7d25921b authored by Matevz Golob's avatar Matevz Golob

Update wendelin-standalone-bind.sh - so that it works in both cases.

parent fafb7e76
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# the way to use it is to wget it and then simply run it. # the way to use it is to wget it and then simply run it.
# it requires socat command # it requires socat command
ZOPE_PIDS="$(slapos node | grep 'zope\|jupyter-lab' | awk '{print substr($0, 91, 5);}')" ZOPE_PIDS="$(slapos node | grep 'zope\|jupyter-lab' | awk '{print substr($0, 92, 5);}')"
LOCAL_IPv4="$(/sbin/ifconfig ens3 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')" LOCAL_IPv4="$(/sbin/ifconfig ens3 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')"
port=20000 port=20000
...@@ -16,7 +16,7 @@ for pid in $ZOPE_PIDS; ...@@ -16,7 +16,7 @@ for pid in $ZOPE_PIDS;
echo $pid, $ip_port, $port echo $pid, $ip_port, $port
# socat # socat
if [[ $ip_port == fd46* ]]; if [[ $ip_port == 2001* ]] || [[ $ip_port == fd46*]];
then then
ipv6_ip=${ip_port:0:10} ipv6_ip=${ip_port:0:10}
ipv6_port=${ip_port:11:15} ipv6_port=${ip_port:11:15}
......
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