mirror of https://github.com/apache/cloudstack.git
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:
parent
c9a0cca604
commit
062e94a317
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue