Skip to content

Commit

Permalink
fix arguments for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
aptalca authored and thelamer committed Sep 23, 2019
1 parent ed4efdc commit 35b8e16
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions root/etc/services.d/code-server/run
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 35b8e16

Please sign in to comment.