mirror of https://github.com/apache/cloudstack.git
CS-16243: Redundant VRs are not compatible with the old password get script
Reviewed-by: Abhi
This commit is contained in:
parent
653eb07627
commit
c800454cb8
|
|
@ -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 ]
|
||||
|
|
|
|||
Loading…
Reference in New Issue