Compare commits

...

3 Commits

Author SHA1 Message Date
tteckster 2fbac0383a
Update post-pve-install.sh
tweak
2023-07-02 03:51:07 -04:00
tteckster 4133d38062
Update post-pve-install.sh
add Enable high availability
2023-07-02 02:54:37 -04:00
tteckster 0cbc4751a0
Update sonarr-install.sh
tweak
2023-07-02 02:19:36 -04:00
2 changed files with 23 additions and 8 deletions

View File

@ -23,7 +23,7 @@ msg_ok "Installed Dependencies"
msg_info "Installing Sonarr" msg_info "Installing Sonarr"
$STD apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 2009837CBFFD68F45BC180471F4F90DE2A9B4BF8 $STD apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 2009837CBFFD68F45BC180471F4F90DE2A9B4BF8
sh -c 'echo "deb https://apt.sonarr.tv/debian testing-main main" > /etc/apt/sources.list.d/sonarr.list' echo "deb https://apt.sonarr.tv/debian testing-main main" >/etc/apt/sources.list.d/sonarr.list
$STD apt-get update $STD apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" install -qqy sonarr &>/dev/null DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" install -qqy sonarr &>/dev/null
msg_ok "Installed Sonarr" msg_ok "Installed Sonarr"

View File

@ -155,6 +155,24 @@ EOF
esac esac
fi 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
if systemctl is-active --quiet pve-ha-lrm; then if systemctl is-active --quiet pve-ha-lrm; then
CHOICE=$(whiptail --title "HIGH AVAILABILITY" --menu "If you plan to utilize a single node instead of a clustered environment, you can disable unnecessary high availability (HA) services, thus reclaiming system resources.\n\nIf HA becomes necessary at a later stage, the services can be re-enabled.\n\nDisable high availability?" 18 58 2 \ CHOICE=$(whiptail --title "HIGH AVAILABILITY" --menu "If you plan to utilize a single node instead of a clustered environment, you can disable unnecessary high availability (HA) services, thus reclaiming system resources.\n\nIf HA becomes necessary at a later stage, the services can be re-enabled.\n\nDisable high availability?" 18 58 2 \
"yes" " " \ "yes" " " \
@ -162,12 +180,9 @@ EOF
case $CHOICE in case $CHOICE in
yes) yes)
msg_info "Disabling high availability" msg_info "Disabling high availability"
systemctl stop pve-ha-lrm systemctl disable -q --now pve-ha-lrm
systemctl disable pve-ha-lrm &>/dev/null systemctl disable -q --now pve-ha-crm
systemctl stop pve-ha-crm systemctl disable -q --now corosync
systemctl disable pve-ha-crm &>/dev/null
systemctl stop corosync
systemctl disable corosync &>/dev/null
msg_ok "Disabled high availability" msg_ok "Disabled high availability"
;; ;;
no) no)
@ -175,7 +190,7 @@ EOF
;; ;;
esac esac
fi fi
CHOICE=$(whiptail --title "UPDATE" --menu "\nUpdate Proxmox VE now?" 11 58 2 \ CHOICE=$(whiptail --title "UPDATE" --menu "\nUpdate Proxmox VE now?" 11 58 2 \
"yes" " " \ "yes" " " \
"no" " " 3>&2 2>&1 1>&3) "no" " " 3>&2 2>&1 1>&3)