File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/sh
22# see https://docs.docker.com/engine/security/https/
3+ set -e
4+
5+ if [ " $DEBUG " = " true" ]; then
6+ set -x
7+ fi
38
49EXPIRATIONDAYS=700
510CASUBJSTRING=" /C=GB/ST=London/L=London/O=ExampleCompany/OU=IT/CN=example.com/emailAddress=test@example.com"
Original file line number Diff line number Diff line change 11#! /bin/sh
2+ set -e
3+
4+ if [ " $DEBUG " = " true" ]; then
5+ set -x
6+ fi
27
38if [ -n " $CERTS_PASSWORD_FILE " ]; then
49 echo " Using cert password from $CERTS_PASSWORD_FILE "
510 CREATE_CERTS_WITH_PW=" $( cat $CERTS_PASSWORD_FILE ) "
611fi
712
8- if [ -n $CREATE_CERTS_WITH_PW ]; then
13+ if [ -n " $CREATE_CERTS_WITH_PW " ]; then
914 if [ -z " $( ls -A $CERTS_DIR ) " ]; then
1015
1116 echo " Create CA cert"
@@ -26,4 +31,7 @@ if [ -n $CREATE_CERTS_WITH_PW ]; then
2631
2732 echo " $CERTS_DIR is not empty. Not creating certs."
2833 fi
34+
35+ else
36+ echo " CREATE_CERTS_WITH_PW is not set. Not creating certs."
2937fi
You can’t perform that action at this time.
0 commit comments