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

11 lines
274 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
2024-08-19 19:51:04 +02:00
if [[ "$(whoami)" == "abc" ]]; then
2021-12-29 21:01:59 +01:00
"${_install[@]}" "$@"
else
s6-setuidgid abc "${_install[@]}" "$@"
fi