From 313bf2354b59a9f4599452e5a96efddde26aab55 Mon Sep 17 00:00:00 2001 From: Carl Tashian Date: Mon, 9 Jan 2023 17:08:24 -0800 Subject: [PATCH] Check for existance of pwdpath before copying --- docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 268cc110..4fa10c1e 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -71,7 +71,7 @@ if [ ! -f "${STEPPATH}/config/ca.json" ]; then init_if_possible fi -if [ ! -f "${PROVISIONER_PWDPATH}" ]; then +if [ -f "${PWDPATH}" ] && [ ! -f "${PROVISIONER_PWDPATH}" ]; then # For backward compatibility, # if the --provisioner-password-file doesn't exist, # use the same password as the CA.