소스 검색

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
     init_if_possible
 fi
 fi
 
 
-if [ ! -f "${PROVISIONER_PWDPATH}" ]; then
+if [ -f "${PWDPATH}" ] && [ ! -f "${PROVISIONER_PWDPATH}" ]; then
     # For backward compatibility,
     # For backward compatibility,
     # if the --provisioner-password-file doesn't exist,
     # if the --provisioner-password-file doesn't exist,
     # use the same password as the CA.
     # use the same password as the CA.