Add helper for mods

This commit is contained in:
Roxedus
2021-12-29 21:01:59 +01:00
parent 7163312453
commit 237f55187a
3 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
_install=(/usr/local/bin/code-server "--extensions-dir" "/config/extensions" "--install-extension")
if [ "$(whoami)" == "abc" ]; then
"${_install[@]}" "$@"
else
s6-setuidgid abc "${_install[@]}" "$@"
fi