From 656d9127123734fab9a488ed31085c14e752d7de Mon Sep 17 00:00:00 2001 From: Dennis Hermsmeier Date: Tue, 18 Jun 2019 12:03:59 +0200 Subject: [PATCH] no need for escaping --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 889ced9..4fdb2c2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/sh 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 echo "root:${ROOT_PASSWORD}" | chpasswd