ls-code-server/root/etc/services.d/code-server/run

21 lines
353 B
Plaintext
Raw Normal View History

2019-06-24 20:03:06 +02:00
#!/usr/bin/with-contenv bash
cd /opt/code-server || exit
2019-06-24 21:27:16 +02:00
if [ -n "${PASSWORD}" ]; then
PASSARG="-P ${PASSWORD}"
else
PASSARG="-N"
echo "starting with no password"
fi
2019-06-24 20:03:06 +02:00
exec \
2019-06-24 21:27:16 +02:00
s6-setuidgid abc \
/opt/code-server/code-server \
-H \
${PASSARG} \
-d /config/data \
-e /config/extensions \
--disable-telemetry \
/config/workspace