v2 compatibility

This commit is contained in:
aptalca
2019-10-24 15:51:46 -04:00
committed by Ryan Kuba
parent 524ba35499
commit a3a6e0f937
4 changed files with 9 additions and 7 deletions

View File

@@ -1,18 +1,18 @@
#!/usr/bin/with-contenv bash
if [ -n "${PASSWORD}" ]; then
PASSARG="-P ${PASSWORD}"
AUTH="--auth password"
else
PASSARG="-N"
echo "starting with no password"
fi
exec \
s6-setuidgid abc \
/usr/bin/code-server \
-H \
${PASSARG} \
-d /config/data \
-e /config/extensions \
--port 8443 \
--user-data-dir /config/data \
--extensions-dir /config/extensions \
--disable-telemetry \
--disable-updates \
${AUTH} \
/config/workspace