Introducing ID to sz.env load, better handling of truenas specific code
This commit is contained in:
parent
f3bd0e804d
commit
18f047b9ca
5 changed files with 30 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"'
|
||||
|
||||
if is_cmd midclt; then
|
||||
if is_truenas && is_cmd midclt && [ -z "$SCALE_POOL" ]; then
|
||||
export SCALE_POOL="$(midclt call "kubernetes.config" 2>/dev/null | jq -r '.pool')"
|
||||
[ -d "/mnt/$SCALE_POOL" ] || unset SCALE_POOL
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue