support custom workspace path

This commit is contained in:
Thomas Bell 2020-03-28 12:15:17 -04:00
parent e8bd8404e9
commit 50655e59f1
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 "${WORKSPACE_PATH}" ]; then
WORKSPACE="/config/workspace"
else
WORKSPACE="${WORKSPACE_PATH}"
fi
exec \
s6-setuidgid abc \
/usr/bin/code-server \
@ -18,4 +24,4 @@ exec \
--auth "${AUTH}" \
--cert "${CERT}" \
--cert-key "${CERT_KEY}" \
/config/workspace
"${WORKSPACE}"