pve: source bashrc

This commit is contained in:
2025-08-05 22:10:27 +03:00
parent e6a47b6d2f
commit e1e91034d2
2 changed files with 23 additions and 3 deletions

View File

@@ -74,7 +74,22 @@ function off {
updl
}
alias h="echo 'avail cmds: updl upg upgr | localprogress'"
function _on {
ha-manager crm-command node-maintenance disable "$1" && \
echo "$1": normal mode
}
# shellcheck disable=SC2120
function off {
if [[ "$#" -gt 0 ]]; then
_on "$@"
return "$?"
else
_on "$HOSTNAME"
fi
}
alias h="echo 'avail cmds: off on | updl upg upgr | localprogress'"
function localprogress () {
watch ls -lh "/var/lib/vz/images/$1"