ls-code-server/root/usr/local/bin/install-extension

11 lines
272 B
Plaintext
Raw Permalink Normal View History

2021-12-29 21:01:59 +01:00
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
_install=(/app/code-server/bin/code-server "--extensions-dir" "/config/extensions" "--install-extension")
2021-12-29 21:01:59 +01:00
if [ "$(whoami)" == "abc" ]; then
"${_install[@]}" "$@"
else
s6-setuidgid abc "${_install[@]}" "$@"
fi