ls-code-server/root/usr/local/bin/install-extension
2024-08-19 18:51:04 +01:00

11 lines
274 B
Plaintext
Executable File

#!/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