docker-vscode-server/root/usr/local/bin/install-extension
2023-05-10 23:43:36 +02:00

11 lines
272 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
_install=(/usr/local/bin/code-server "serve-local" "--accept-server-license-terms" "--install-extension")
if [ "$(whoami)" == "abc" ]; then
"${_install[@]}" "$@"
else
s6-setuidgid abc "${_install[@]}" "$@"
fi