Skip to content

Commit 78c8d61

Browse files
committed
Fix CREATE_CERTS_WITH_PW variable check
1 parent 21fd826 commit 78c8d61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ -n "$CERTS_PASSWORD_FILE" ]; then
1010
CREATE_CERTS_WITH_PW="$(cat $CERTS_PASSWORD_FILE)"
1111
fi
1212

13-
if [ -n $CREATE_CERTS_WITH_PW ]; then
13+
if [ -n "$CREATE_CERTS_WITH_PW" ]; then
1414
if [ -z "$(ls -A $CERTS_DIR)" ]; then
1515

1616
echo "Create CA cert"
@@ -31,4 +31,7 @@ if [ -n $CREATE_CERTS_WITH_PW ]; then
3131

3232
echo "$CERTS_DIR is not empty. Not creating certs."
3333
fi
34+
35+
else
36+
echo "CREATE_CERTS_WITH_PW is not set. Not creating certs."
3437
fi

0 commit comments

Comments
 (0)