From 6c6d036447d085aa313658abd32fce78e096005c Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Sun, 28 Oct 2012 15:39:42 +0530 Subject: [PATCH] CLOUDSTACK-196: cloud-set-guest-password enhancement to support Debian (and derivatives) Synced fix on setup/bindir/cloud-set-guest-password.in too. Note: we've duplicate files, one in tools Signed-off-by: Rohit Yadav --- setup/bindir/cloud-set-guest-password.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/bindir/cloud-set-guest-password.in b/setup/bindir/cloud-set-guest-password.in index 69be175ceff..321589466c4 100755 --- a/setup/bindir/cloud-set-guest-password.in +++ b/setup/bindir/cloud-set-guest-password.in @@ -27,7 +27,7 @@ user=root # Add your DHCP lease folders here -DHCP_FOLDERS="/var/lib/dhclient/* /var/lib/dhcp3/*" +DHCP_FOLDERS="/var/lib/dhclient/* /var/lib/dhcp3/* /var/lib/dhcp/*" password_received=0 file_count=0 error_count=0 @@ -95,7 +95,7 @@ then fi logger -t "cloud" "Changing password ..." -echo $password | passwd --stdin $user +echo $user:$password | chpasswd if [ $? -gt 0 ] then