structural changes for v3.0.0

This commit is contained in:
aptalca
2020-03-05 16:15:55 -05:00
parent aa80452d08
commit f99051341c
4 changed files with 15 additions and 8 deletions

View File

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