mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-26 22:15:41 +01:00
fix arguments for v2
This commit is contained in:
parent
ed4efdca09
commit
35b8e16e5f
@ -1,18 +1,16 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
if [ -n "${PASSWORD}" ]; then
|
if [ -n "${PASSWORD}" ]; then
|
||||||
PASSARG="-P ${PASSWORD}"
|
AUTH="--auth password"
|
||||||
else
|
else
|
||||||
PASSARG="-N"
|
|
||||||
echo "starting with no password"
|
echo "starting with no password"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec \
|
exec \
|
||||||
s6-setuidgid abc \
|
s6-setuidgid abc \
|
||||||
/usr/bin/code-server \
|
/usr/bin/code-server \
|
||||||
-H \
|
--port 8443 \
|
||||||
${PASSARG} \
|
--user-data-dir /config/data \
|
||||||
-d /config/data \
|
--extensions-dir /config/extensions \
|
||||||
-e /config/extensions \
|
${AUTH} \
|
||||||
--disable-telemetry \
|
|
||||||
/config/workspace
|
/config/workspace
|
||||||
|
Loading…
Reference in New Issue
Block a user