ls-code-server/root/etc/services.d/code-server/run
2019-06-25 20:25:43 -04:00

19 lines
316 B
Plaintext

#!/usr/bin/with-contenv bash
if [ -n "${PASSWORD}" ]; then
PASSARG="-P ${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 \
/config/workspace