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