fix arguments for v2

This commit is contained in:
aptalca 2019-09-22 22:42:55 -04:00 committed by Ryan Kuba
parent ed4efdca09
commit 35b8e16e5f

View File

@ -1,18 +1,16 @@
#!/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 \
--disable-telemetry \
--port 8443 \
--user-data-dir /config/data \
--extensions-dir /config/extensions \
${AUTH} \
/config/workspace