mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-22 00:04:13 +01:00
Update post-pve-install.sh
add Enable high availability
This commit is contained in:
parent
0cbc4751a0
commit
4133d38062
@ -162,12 +162,9 @@ EOF
|
||||
case $CHOICE in
|
||||
yes)
|
||||
msg_info "Disabling high availability"
|
||||
systemctl stop pve-ha-lrm
|
||||
systemctl disable pve-ha-lrm &>/dev/null
|
||||
systemctl stop pve-ha-crm
|
||||
systemctl disable pve-ha-crm &>/dev/null
|
||||
systemctl stop corosync
|
||||
systemctl disable corosync &>/dev/null
|
||||
systemctl disable -q --now pve-ha-lrm
|
||||
systemctl disable -q --now pve-ha-crm
|
||||
systemctl disable -q --now corosync
|
||||
msg_ok "Disabled high availability"
|
||||
;;
|
||||
no)
|
||||
@ -176,6 +173,24 @@ EOF
|
||||
esac
|
||||
fi
|
||||
|
||||
if ! systemctl is-active --quiet pve-ha-lrm; then
|
||||
CHOICE=$(whiptail --title "HIGH AVAILABILITY" --menu "Enable high availability?" 10 58 2 \
|
||||
"yes" " " \
|
||||
"no" " " 3>&2 2>&1 1>&3)
|
||||
case $CHOICE in
|
||||
yes)
|
||||
msg_info "Enabling high availability"
|
||||
systemctl enable -q --now pve-ha-lrm
|
||||
systemctl enable -q --now pve-ha-crm
|
||||
systemctl enable -q --now corosync
|
||||
msg_ok "Enabled high availability"
|
||||
;;
|
||||
no)
|
||||
msg_error "Selected no to Enabling high availability"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CHOICE=$(whiptail --title "UPDATE" --menu "\nUpdate Proxmox VE now?" 11 58 2 \
|
||||
"yes" " " \
|
||||
"no" " " 3>&2 2>&1 1>&3)
|
||||
|
Loading…
Reference in New Issue
Block a user