mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-26 22:15:41 +01:00
19 lines
316 B
Plaintext
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
|