4
0
Fork 0

fixed generation of initial password

This commit is contained in:
Benjamin Böhmke 2019-12-15 17:48:38 +01:00
parent f862f767be
commit f6edd86471
1 changed files with 4 additions and 2 deletions

View File

@ -196,8 +196,10 @@ if [ ! -f /data/etc/hostname ]; then
fi
# root password
root_pw=\$(mkpasswd -m sha-512 -s "${DEFAULT_ROOT_PASSWORD}")
echo "root:\${root_pw}:0:0:::::" > /data/etc/shadow
if [ ! -f /data/etc/shadow ]; then
root_pw=\$(mkpasswd -m sha-512 -s "${DEFAULT_ROOT_PASSWORD}")
echo "root:\${root_pw}:0:0:::::" > /data/etc/shadow
fi
# interface
mkdir -p /data/etc/network