dm/docker/code-server/root/usr/local/bin/install-extension

11 lines
272 B
Plaintext
Raw Permalink Normal View History

2024-06-19 13:13:34 +08:00
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
_install=(/app/code-server/bin/code-server "--extensions-dir" "/config/extensions" "--install-extension")
if [ "$(whoami)" == "abc" ]; then
"${_install[@]}" "$@"
else
s6-setuidgid abc "${_install[@]}" "$@"
fi