mirror of
https://github.com/linuxserver/docker-code-server
synced 2025-06-26 18:27:40 +00:00
make password auth optional
This commit is contained in:
@@ -2,5 +2,19 @@
|
||||
|
||||
cd /opt/code-server || exit
|
||||
|
||||
if [ -n "${PASSWORD}" ]; then
|
||||
PASSARG="-P ${PASSWORD}"
|
||||
else
|
||||
PASSARG="-N"
|
||||
echo "starting with no password"
|
||||
fi
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc /opt/code-server/code-server -H -P ${PASSWORD} -d /config/data -e /config/extensions --disable-telemetry /config/workspace
|
||||
s6-setuidgid abc \
|
||||
/opt/code-server/code-server \
|
||||
-H \
|
||||
${PASSARG} \
|
||||
-d /config/data \
|
||||
-e /config/extensions \
|
||||
--disable-telemetry \
|
||||
/config/workspace
|
||||
|
||||
Reference in New Issue
Block a user