Skip to content

Commit 8a4dfa0

Browse files
Add check for corosync (#3998)
1 parent e3c2fba commit 8a4dfa0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tools/pve/post-pve-install.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,20 @@ EOF
179179
msg_info "Disabling high availability"
180180
systemctl disable -q --now pve-ha-lrm
181181
systemctl disable -q --now pve-ha-crm
182-
systemctl disable -q --now corosync
183182
msg_ok "Disabled high availability"
183+
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "COROSYNC" --menu "Disable Corosync for a Proxmox VE Cluster?" 10 58 2 \
184+
"yes" " " \
185+
"no" " " 3>&2 2>&1 1>&3)
186+
case $CHOICE in
187+
yes)
188+
msg_info "Disabling Corosync"
189+
systemctl disable -q --now corosync
190+
msg_ok "Disabled Corosync"
191+
;;
192+
no)
193+
msg_error "Selected no to Disabling Corosync"
194+
;;
195+
esac
184196
;;
185197
no)
186198
msg_error "Selected no to Disabling high availability"

0 commit comments

Comments
 (0)