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

21 lines
345 B
Plaintext

#!/usr/bin/with-contenv bash
cd /opt/code-server || exit
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