From 8a4dfa0cc76ee896e9db1f9035f2bc16cb576f1b Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Wed, 23 Apr 2025 09:45:35 +0200 Subject: [PATCH] Add check for corosync (#3998) --- tools/pve/post-pve-install.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/pve/post-pve-install.sh b/tools/pve/post-pve-install.sh index 39497608c..5afc3bd02 100644 --- a/tools/pve/post-pve-install.sh +++ b/tools/pve/post-pve-install.sh @@ -179,8 +179,20 @@ EOF msg_info "Disabling high availability" systemctl disable -q --now pve-ha-lrm systemctl disable -q --now pve-ha-crm - systemctl disable -q --now corosync msg_ok "Disabled high availability" + CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "COROSYNC" --menu "Disable Corosync for a Proxmox VE Cluster?" 10 58 2 \ + "yes" " " \ + "no" " " 3>&2 2>&1 1>&3) + case $CHOICE in + yes) + msg_info "Disabling Corosync" + systemctl disable -q --now corosync + msg_ok "Disabled Corosync" + ;; + no) + msg_error "Selected no to Disabling Corosync" + ;; + esac ;; no) msg_error "Selected no to Disabling high availability"