mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-27 06:25:41 +01:00
11 lines
266 B
Plaintext
11 lines
266 B
Plaintext
|
#!/usr/bin/with-contenv bash
|
||
|
# shellcheck shell=bash
|
||
|
|
||
|
_install=(/usr/local/bin/code-server "--extensions-dir" "/config/extensions" "--install-extension")
|
||
|
|
||
|
if [ "$(whoami)" == "abc" ]; then
|
||
|
"${_install[@]}" "$@"
|
||
|
else
|
||
|
s6-setuidgid abc "${_install[@]}" "$@"
|
||
|
fi
|