miyagi-check.sh aktualisiert
add check_pveversion
This commit is contained in:
@@ -151,6 +151,18 @@ check_sshd_config_recommendation() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_pveversion() {
|
||||||
|
local host=$1
|
||||||
|
LOG "Prüfe PVE-Version auf $host ..."
|
||||||
|
if ssh -p "$SSHPORT" "$host" "command -v pveversion >/dev/null"; then
|
||||||
|
ssh -p "$SSHPORT" "$host" "pveversion" | while read -r line; do
|
||||||
|
LOG " $host: $line"
|
||||||
|
done
|
||||||
|
else
|
||||||
|
LOG " 'pveversion' ist auf $host nicht verfügbar – kein Proxmox?"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
run_host_check() {
|
run_host_check() {
|
||||||
local host=$1
|
local host=$1
|
||||||
LOG ""
|
LOG ""
|
||||||
@@ -158,6 +170,7 @@ run_host_check() {
|
|||||||
if check_ssh_connection "$host"; then
|
if check_ssh_connection "$host"; then
|
||||||
check_and_copy_ssh_key "$host"
|
check_and_copy_ssh_key "$host"
|
||||||
check_sshd_config_recommendation "$host"
|
check_sshd_config_recommendation "$host"
|
||||||
|
check_pveversion "$host"
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user