pve: source bashrc
This commit is contained in:
		@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user