From c448a4ba538f2dd7a2677150f25f4dac8007fb51 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 9 Jan 2023 21:33:57 -0500 Subject: [PATCH] Update plex-v5.sh add plexupdate option --- ct/plex-v5.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ct/plex-v5.sh b/ct/plex-v5.sh index 944e9165..348bca7f 100644 --- a/ct/plex-v5.sh +++ b/ct/plex-v5.sh @@ -319,13 +319,24 @@ function install_script() { fi } function update_script() { +UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 10 58 2 \ + "1" "Update LXC" ON \ + "2" "Run plexupdate" OFF \ + 3>&1 1>&2 2>&3) + clear header_info +if [ "$UPD" == "1" ]; then msg_info "Updating ${APP} LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null msg_ok "Updated ${APP} LXC" exit +fi +if [ "$UPD" == "2" ]; then +bash -c "$(wget -qO - https://raw.githubusercontent.com/mrworf/plexupdate/master/extras/installer.sh)" +exit +fi } clear if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi