CLOUDSTACK-196: cloud-set-guest-password enhancement to support Debian

(and derivatives)

Signed-off-by: Edison Su <sudison@gmail.com>
This commit is contained in:
Matty Courtney 2012-09-25 15:42:28 -07:00 committed by Edison Su
parent c9a0cca604
commit 062e94a317
1 changed files with 2 additions and 2 deletions

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