some logging

This commit is contained in:
Dennis Hermsmeier 2019-06-18 12:10:43 +02:00
parent 8506ae5075
commit 2c3cbd52f4

View File

@ -2,6 +2,7 @@
if [ "${ROOT_PASSWORD}" == "root" ] || [ -z "${ROOT_PASSWORD}" ]; then
export ROOT_PASSWORD="$(hexdump -e '"%02x"' -n 16 /dev/urandom)"
echo "Successfully generated a random password for root"
fi
echo "root:${ROOT_PASSWORD}" | chpasswd