Skip to content
Snippets Groups Projects
Commit 99721798 authored by Bob Mottram's avatar Bob Mottram
Browse files

Abandon empty password

parent e89f9bc5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment