mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-23 04:25:40 +01:00
fix arguments for v2
This commit is contained in:
parent
ed4efdca09
commit
35b8e16e5f
@ -1,18 +1,16 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -n "${PASSWORD}" ]; then
|
||||
PASSARG="-P ${PASSWORD}"
|
||||
AUTH="--auth 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 \
|
||||
--port 8443 \
|
||||
--user-data-dir /config/data \
|
||||
--extensions-dir /config/extensions \
|
||||
${AUTH} \
|
||||
/config/workspace
|
||||
|
Loading…
Reference in New Issue
Block a user