allow setting certs location so mounted cert folder doesnt need to match expected names (#38)

This commit is contained in:
Jye Lee
2020-11-14 09:57:54 +01:00
committed by GitHub
parent 3bb9f15061
commit 8bfb0a9ef6
+3 -3
View File
@@ -25,9 +25,9 @@ CN_WEB=${CN_WEB:0:64}
mkdir -p /certs /ca
cd /ca
CA_KEY_FILE=/ca/ca.key
CA_CRT_FILE=/ca/ca.crt
CA_SRL_FILE=/ca/ca.srl
CA_KEY_FILE=${CA_KEY_FILE:-/ca/ca.key}
CA_CRT_FILE=${CA_CRT_FILE:-/ca/ca.crt}
CA_SRL_FILE=${CA_SRL_FILE:-/ca/ca.srl}
if [ -f "$CA_CRT_FILE" ] ; then
logInfo "CA already exists. Good. We'll reuse it."