mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
5e2c1ef26e
commit
6c6d036447
@ -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…
x
Reference in New Issue
Block a user