From 35b8e16e5fe28d55a202555c2d4e1e37cb4126ab Mon Sep 17 00:00:00 2001 From: aptalca Date: Sun, 22 Sep 2019 22:42:55 -0400 Subject: [PATCH] fix arguments for v2 --- root/etc/services.d/code-server/run | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/root/etc/services.d/code-server/run b/root/etc/services.d/code-server/run index 6ea617d..bb9d929 100644 --- a/root/etc/services.d/code-server/run +++ b/root/etc/services.d/code-server/run @@ -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