support leaving off cert_key

This commit is contained in:
Thomas Bell 2020-03-28 13:29:57 -04:00
parent e08e14778c
commit 51c5aa1f55
No known key found for this signature in database
GPG Key ID: 0223265715C296F9

View File

@ -7,6 +7,12 @@ else
echo "starting with no password"
fi
if [ -n "${CERT_KEY}" ]; then
KEY="--cert-key ${CERT_KEY}"
else
KEY=""
fi
exec \
s6-setuidgid abc \
/usr/bin/code-server \
@ -17,5 +23,5 @@ exec \
--disable-updates \
--auth "${AUTH}" \
--cert "${CERT}" \
--cert-key "${CERT_KEY}" \
"${KEY}" \
/config/workspace