quote root env

This commit is contained in:
Dennis Hermsmeier
2018-05-22 08:35:14 +02:00
committed by GitHub
parent df6e0d184a
commit 279065bbec

View File

@@ -4,7 +4,7 @@
ssh-keygen -A
# check wether a random root-password is provided
if [ ! -z ${ROOT_PASSWORD} ] && [ "${ROOT_PASSWORD}" != "root" ]; then
if [ ! -z "${ROOT_PASSWORD}" ] && [ "${ROOT_PASSWORD}" != "root" ]; then
echo "root:${ROOT_PASSWORD}" | chpasswd
fi