ls-code-server/root/etc/services.d/code-server/run
2019-09-22 21:47:48 -07:00

17 lines
307 B
Plaintext

#!/usr/bin/with-contenv bash
if [ -n "${PASSWORD}" ]; then
AUTH="--auth password"
else
echo "starting with no password"
fi
exec \
s6-setuidgid abc \
/usr/bin/code-server \
--port 8443 \
--user-data-dir /config/data \
--extensions-dir /config/extensions \
${AUTH} \
/config/workspace