CS-16243: Redundant VRs are not compatible with the old password get script

Reviewed-by: Abhi
This commit is contained in:
Jayapal Reddy 2012-08-31 16:31:55 +05:30
parent 653eb07627
commit c800454cb8
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
#!/bin/bash
. /etc/default/cloud-passwd-srvr
guestIp=$(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
#guestIp=$(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
while [ "$ENABLED" == "1" ]
do
socat -lf /var/log/cloud.log TCP4-LISTEN:8080,reuseaddr,crnl,bind=$guestIp SYSTEM:"/opt/cloud/bin/serve_password.sh \"\$SOCAT_PEERADDR\""
socat -lf /var/log/cloud.log TCP4-LISTEN:8080,reuseaddr,crnl,bindtodevice=eth0 SYSTEM:"/opt/cloud/bin/serve_password.sh \"\$SOCAT_PEERADDR\""
rc=$?
if [ $rc -ne 0 ]