Fix TrueNAS SCALE oriented cli tools
This commit is contained in:
parent
db7ba3de56
commit
ec1123ecb9
3 changed files with 18 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"'
|
||||
|
||||
if is_cmd fix-kubectl; then
|
||||
. <( fix-kubectl - )
|
||||
if is_cmd szetup-kubectl4k3s && [ "$(systemctl is-active k3s.service)" = "active" ]; then
|
||||
. <( szetup-kubectl4k3s - )
|
||||
|
||||
[[ -n "${DBG}" ]] && echo "kubectl for k3s setup complete."
|
||||
fi
|
||||
|
|
|
@ -5,6 +5,14 @@ if is_cmd midclt; then
|
|||
if [ -e "$SCALE_POOL_ROOT/jailmaker/jlmkr.py" ]; then
|
||||
#alias jlmkr="bash -c '_jlmkr() { $SCALE_POOL_ROOT/jailmaker/jlmkr.py \${@:---help}; }; _jlmkr \$@' "
|
||||
function jlmkr() { sudo $SCALE_POOL_ROOT/jailmaker/jlmkr.py "${@:---help}"; }
|
||||
|
||||
jlmkr-zellij() {
|
||||
zellij action go-to-tab-name --create "jailmkr"
|
||||
zellij action new-pane --name "${1:?must pass jail name}@jlmkr" -- sh -ci "reset; sudo $SCALE_POOL_ROOT/jailmaker/jlmkr.py shell --uid ${UID} ${1}"
|
||||
zellij action focus-previous-pane
|
||||
zellij action close-pane
|
||||
}
|
||||
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue