mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Check for existance of pwdpath before copying
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user