Преглед на файлове

Check for existance of pwdpath before copying

Carl Tashian преди 3 години
родител
ревизия
313bf2354b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      docker/entrypoint.sh

+ 1 - 1
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.