Commit 5f8e794e authored by Matevz Golob's avatar Matevz Golob Committed by Ivan Tyagov

Fixed a typo and commented out testing line.

/reviewed-on nexedi/wendelin!35
parent 392dee9c
......@@ -13,10 +13,10 @@ for pid in $ZOPE_PIDS;
# remove any trailing character in case PID is less than 5 digits
pid="$(echo ${pid} | sed 's/,//')"
ip_port="$(netstat -lpn --inet --inet6 | grep " $pid"/ |awk '{print substr($0, 21, 17);}')";
echo $pid, $ip_port, $port
#echo $pid, $ip_port, $port
# socat
if [[ $ip_port == 2001* ]] || [[ $ip_port == fd46*]];
if [[ $ip_port == 2001* ]] || [[ $ip_port == fd46* ]];
then
ipv6_ip=${ip_port:0:10}
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