-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
15 lines (14 loc) · 772 Bytes
/
entrypoint.sh
File metadata and controls
15 lines (14 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env ash
if [[ ! -f "${CONFIGPATH}" ]]; then
echo "Could not find config file at ${CONFIGPATH}, please mount a configuration file in the specified location."
echo "Refer to the step certificates documentation for further help to initialize the PKI to use for your certificate authority:"
echo "https://smallstep.com/docs/cli/ca/init/"
exit 1
fi
if [[ ! -f "${PWDPATH}" ]]; then
echo "Could not find password file at ${PWDPATH}, please mount a password file in the specified location."
echo "Refer to the step certificates documentation for further help to initialize the PKI to use for your certificate authority:"
echo "https://smallstep.com/docs/cli/ca/init/"
exit 1
fi
exec /usr/local/bin/step-ca --password-file "${PWDPATH}" "${CONFIGPATH}"