no need for escaping

This commit is contained in:
Dennis Hermsmeier 2019-06-18 12:03:59 +02:00
parent 7f8abf1338
commit 656d912712

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
if [ "${ROOT_PASSWORD}" == "root" ] || [ -z "${ROOT_PASSWORD}" ]; then if [ "${ROOT_PASSWORD}" == "root" ] || [ -z "${ROOT_PASSWORD}" ]; then
export ROOT_PASSWORD="$(hexdump -e '\"%02x\"' -n 16 /dev/urandom)" export ROOT_PASSWORD="$(hexdump -e '%02x' -n 16 /dev/urandom)"
fi fi
echo "root:${ROOT_PASSWORD}" | chpasswd echo "root:${ROOT_PASSWORD}" | chpasswd