Skip to content

Commit 35b8e16

Browse files
aptalcathelamer
authored andcommitted
fix arguments for v2
1 parent ed4efdc commit 35b8e16

File tree

1 file changed

+5
-7
lines changed
  • root/etc/services.d/code-server

1 file changed

+5
-7
lines changed

root/etc/services.d/code-server/run

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
#!/usr/bin/with-contenv bash
22

33
if [ -n "${PASSWORD}" ]; then
4-
PASSARG="-P ${PASSWORD}"
4+
AUTH="--auth password"
55
else
6-
PASSARG="-N"
76
echo "starting with no password"
87
fi
98

109
exec \
1110
s6-setuidgid abc \
1211
/usr/bin/code-server \
13-
-H \
14-
${PASSARG} \
15-
-d /config/data \
16-
-e /config/extensions \
17-
--disable-telemetry \
12+
--port 8443 \
13+
--user-data-dir /config/data \
14+
--extensions-dir /config/extensions \
15+
${AUTH} \
1816
/config/workspace

0 commit comments

Comments
 (0)