From 336cfffbaebad39da63d53e820c8e627f7fa120f Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 16 Jun 2025 14:55:41 +0200 Subject: [PATCH] Update create_lxc.sh --- misc/create_lxc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/create_lxc.sh b/misc/create_lxc.sh index aa1e3eb7..8c834cfc 100644 --- a/misc/create_lxc.sh +++ b/misc/create_lxc.sh @@ -144,9 +144,9 @@ if [ "$STORAGE_FREE" -lt "$REQUIRED_KB" ]; then fi # Check Cluster Quorum if in Cluster -if ! pvecm status | grep -q "Quorate: Yes"; then - printf "\e[?25h" # Cursor sichtbar machen - echo -e "\n\n${CROSS}${RD}Cluster is not quorate. Start all nodes or configure quorum device (QDevice). 111${CL}\n" +if ! pvecm status | awk '/^Quorate:/ {exit $2 != "Yes"}'; then + printf "\e[?25h" + echo -e "\n${CROSS}${RD}Cluster is not quorate. Start all nodes or configure quorum device (QDevice).${CL}\n" exit 210 fi