ls-code-server/root/etc/services.d/code-server/run
2019-06-24 15:27:16 -04:00

21 lines
353 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 \
/opt/code-server/code-server \
-H \
${PASSARG} \
-d /config/data \
-e /config/extensions \
--disable-telemetry \
/config/workspace