From a6e33143c215aad668bc4ba625dfe4c840cdb53b Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Tue, 25 Mar 2014 15:55:41 -0700 Subject: [PATCH] CLOUDSTACK-6285: Fix savepassword.sh script for clear out old entries --- systemvm/patches/debian/config/opt/cloud/bin/savepassword.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/savepassword.sh b/systemvm/patches/debian/config/opt/cloud/bin/savepassword.sh index 1ea27e5b702..21fa09d5b7e 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/savepassword.sh +++ b/systemvm/patches/debian/config/opt/cloud/bin/savepassword.sh @@ -52,7 +52,7 @@ done [ -f $PASSWD_FILE ] || touch $PASSWD_FILE -sed -i /$VM_IP/d $PASSWD_FILE +sed -i /$VM_IP=/d $PASSWD_FILE ps aux | grep serve_password.sh |grep -v grep 2>&1 > /dev/null if [ $? -eq 0 ]