From 279065bbecbf6570abdec9ef81286b8ec21e0831 Mon Sep 17 00:00:00 2001 From: Dennis Hermsmeier Date: Tue, 22 May 2018 08:35:14 +0200 Subject: [PATCH] quote root env --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 69711ce..1717a7a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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