Abandon empty password

This commit is contained in:
Bob Mottram 2016-06-25 12:44:32 +01:00
parent e89f9bc5f5
commit 997217983c
1 changed files with 0 additions and 4 deletions

View File

@ -1226,10 +1226,6 @@ export TMP=/tmp/ TMPDIR=/tmp/
username=$MY_USERNAME
echo $"warning: creating initial user $username with well known password!"
if [[ $VARIANT == "meshclient" || $VARIANT == "meshusb" ]]; then
# on the mesh client don't use a password by default
MY_PASSWORD=''
fi
password=$MY_PASSWORD
chroot "$rootdir" adduser --gecos $username --disabled-password $username
echo $username:$password | chroot $rootdir /usr/sbin/chpasswd