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 <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2012-10-28 15:39:42 +05:30
parent 5e2c1ef26e
commit 6c6d036447

View File

@ -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