From 0ddf5e210118046c9ee20f18e1389188c676cadb Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 11 Feb 2023 20:36:39 -0500 Subject: [PATCH] update pve & arch checks (#1044) * update ARCH_CHECK & PVE_CHECK * header_info * PVE 7 required --- ct/adguard-v5.sh | 28 ++++++++++++++-------------- ct/alpine-v5.sh | 28 ++++++++++++++-------------- ct/archlinux-v5.sh | 28 ++++++++++++++-------------- ct/audiobookshelf-v5.sh | 28 ++++++++++++++-------------- ct/autobrr-v5.sh | 28 ++++++++++++++-------------- ct/blocky-v5.sh | 28 ++++++++++++++-------------- ct/casaos-v5.sh | 28 ++++++++++++++-------------- ct/changedetection-v5.sh | 28 ++++++++++++++-------------- ct/cronicle-v5.sh | 28 ++++++++++++++-------------- ct/daemonsync-v5.sh | 28 ++++++++++++++-------------- ct/dashy-v5.sh | 28 ++++++++++++++-------------- ct/debian-v5.sh | 28 ++++++++++++++-------------- ct/deconz-v5.sh | 28 ++++++++++++++-------------- ct/deluge-v5.sh | 28 ++++++++++++++-------------- ct/devuan-v5.sh | 28 ++++++++++++++-------------- ct/docker-v5.sh | 28 ++++++++++++++-------------- ct/emby-v5.sh | 28 ++++++++++++++-------------- ct/emqx-v5.sh | 28 ++++++++++++++-------------- ct/esphome-v5.sh | 28 ++++++++++++++-------------- ct/grafana-v5.sh | 28 ++++++++++++++-------------- ct/grocy-v5.sh | 28 ++++++++++++++-------------- ct/heimdalldashboard-v5.sh | 28 ++++++++++++++-------------- ct/homeassistant-core-v5.sh | 32 ++++++++++++++++---------------- ct/homeassistant-v5.sh | 28 ++++++++++++++-------------- ct/homebridge-v5.sh | 28 ++++++++++++++-------------- ct/homepage-v5.sh | 28 ++++++++++++++-------------- ct/homer-v5.sh | 28 ++++++++++++++-------------- ct/hyperion-v5.sh | 25 ++++++++++++------------- ct/influxdb-v5.sh | 28 ++++++++++++++-------------- ct/iobroker-v5.sh | 28 ++++++++++++++-------------- ct/jellyfin-v5.sh | 28 ++++++++++++++-------------- ct/k0s-v5.sh | 28 ++++++++++++++-------------- ct/kavita-v5.sh | 28 ++++++++++++++-------------- ct/keycloak-v5.sh | 28 ++++++++++++++-------------- ct/lidarr-v5.sh | 28 ++++++++++++++-------------- ct/magicmirror-v5.sh | 28 ++++++++++++++-------------- ct/mariadb-v5.sh | 28 ++++++++++++++-------------- ct/meshcentral-v5.sh | 28 ++++++++++++++-------------- ct/motioneye-v5.sh | 28 ++++++++++++++-------------- ct/mqtt-v5.sh | 25 ++++++++++++------------- ct/n8n-v5.sh | 28 ++++++++++++++-------------- ct/navidrome-v5.sh | 28 ++++++++++++++-------------- ct/nextcloudpi-v5.sh | 28 ++++++++++++++-------------- ct/nginxproxymanager-v5.sh | 28 ++++++++++++++-------------- ct/nocodb-v5.sh | 28 ++++++++++++++-------------- ct/node-red-v5.sh | 29 ++++++++++++++--------------- ct/omada-v5.sh | 27 ++++++++++++++------------- ct/omv-v5.sh | 28 ++++++++++++++-------------- ct/openhab-v5.sh | 28 ++++++++++++++-------------- ct/paperless-ngx-v5.sh | 28 ++++++++++++++-------------- ct/photoprism-v5.sh | 28 ++++++++++++++-------------- ct/pihole-v5.sh | 28 ++++++++++++++-------------- ct/plex-v5.sh | 28 ++++++++++++++-------------- ct/podman-homeassistant-v5.sh | 28 ++++++++++++++-------------- ct/podman-v5.sh | 28 ++++++++++++++-------------- ct/postgresql-v5.sh | 28 ++++++++++++++-------------- ct/prometheus-v5.sh | 28 ++++++++++++++-------------- ct/prowlarr-v5.sh | 28 ++++++++++++++-------------- ct/radarr-v5.sh | 28 ++++++++++++++-------------- ct/readarr-v5.sh | 28 ++++++++++++++-------------- ct/rockylinux-v5.sh | 28 ++++++++++++++-------------- ct/sabnzbd-v5.sh | 28 ++++++++++++++-------------- ct/scrypted-v5.sh | 28 ++++++++++++++-------------- ct/shinobi-v5.sh | 28 ++++++++++++++-------------- ct/sonarr-v5.sh | 28 ++++++++++++++-------------- ct/syncthing-v5.sh | 28 ++++++++++++++-------------- ct/tdarr-v5.sh | 28 ++++++++++++++-------------- ct/technitiumdns-v5.sh | 28 ++++++++++++++-------------- ct/transmission-v5.sh | 28 ++++++++++++++-------------- ct/trilium-v5.sh | 28 ++++++++++++++-------------- ct/ubuntu-v5.sh | 28 ++++++++++++++-------------- ct/umbrel-v5.sh | 28 ++++++++++++++-------------- ct/unifi-v5.sh | 28 ++++++++++++++-------------- ct/uptimekuma-v5.sh | 28 ++++++++++++++-------------- ct/vaultwarden-v5.sh | 28 ++++++++++++++-------------- ct/whisparr-v5.sh | 28 ++++++++++++++-------------- ct/whoogle-v5.sh | 28 ++++++++++++++-------------- ct/wikijs-v5.sh | 28 ++++++++++++++-------------- ct/wireguard-v5.sh | 28 ++++++++++++++-------------- ct/yunohost-v5.sh | 28 ++++++++++++++-------------- ct/zigbee2mqtt-v5.sh | 28 ++++++++++++++-------------- ct/zwave-js-ui-v5.sh | 28 ++++++++++++++-------------- 82 files changed, 1146 insertions(+), 1148 deletions(-) diff --git a/ct/adguard-v5.sh b/ct/adguard-v5.sh index 2022e1f7..fa35e0c0 100644 --- a/ct/adguard-v5.sh +++ b/ct/adguard-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ___ __ __ / | ____/ /___ ___v5______ __________/ / / /| |/ __ / __ / / / / __ / ___/ __ / @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Adguard" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Stopping AdguardHome" systemctl stop AdGuardHome @@ -364,8 +363,9 @@ msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/alpine-v5.sh b/ct/alpine-v5.sh index f48475c6..a7d31ece 100644 --- a/ct/alpine-v5.sh +++ b/ct/alpine-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ___ v5 __ _ / | / /___ (_)___ ___ / /| | / / __ \/ / __ \/ _ \ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Alpine" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -335,7 +335,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apk update &>/dev/null @@ -343,8 +342,9 @@ apk upgrade &>/dev/null msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/archlinux-v5.sh b/ct/archlinux-v5.sh index 5349d521..c1e68f70 100644 --- a/ct/archlinux-v5.sh +++ b/ct/archlinux-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ___ __ __ _ / | __________/ /_ v5 / / (_)___ __ ___ __ / /| | / ___/ ___/ __ \ / / / / __ \/ / / / |/_/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Arch Linux" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" pacman-key --init @@ -347,8 +346,9 @@ pacman -Sy archlinux-keyring && pacman -Su msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/audiobookshelf-v5.sh b/ct/audiobookshelf-v5.sh index 981f227d..05dda529 100644 --- a/ct/audiobookshelf-v5.sh +++ b/ct/audiobookshelf-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ___ __ __ __ ______ ____ ___ ______/ (_)___v5/ /_ ____ ____ / /_______/ /_ ___ / / __/ / __ `/ / / / __ / / __ \/ __ \/ __ \/ __ \/ //_/ ___/ __ \/ _ \/ / /_ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="audiobookshelf" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/autobrr-v5.sh b/ct/autobrr-v5.sh index e5fdb60f..1fed6b3b 100644 --- a/ct/autobrr-v5.sh +++ b/ct/autobrr-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ___ __ __ / | __ __/ /_____ / /_v5__________ / /| |/ / / / __/ __ \/ __ \/ ___/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Autobrr" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -337,7 +337,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Stopping ${APP} LXC" systemctl stop autobrr.service @@ -356,8 +355,9 @@ msg_ok "Started ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/blocky-v5.sh b/ct/blocky-v5.sh index ccf94f66..ab491a6e 100644 --- a/ct/blocky-v5.sh +++ b/ct/blocky-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ __ / __ )/ /___v5_____/ /____ __ / __ / / __ \/ ___/ //_/ / / / @@ -15,7 +17,6 @@ function header_info { /____/ EOF } -clear header_info echo -e "Loading..." APP="Blocky" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/casaos-v5.sh b/ct/casaos-v5.sh index 416743d9..04683e0d 100644 --- a/ct/casaos-v5.sh +++ b/ct/casaos-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ______ ____ _____ / ____/___ __v5______ _/ __ \/ ___/ / / / __ `/ ___/ __ `/ / / /\__ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="CasaOS" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -346,7 +346,6 @@ function install_script() { fi } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -356,8 +355,9 @@ msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$FUSE" == "yes" ]; then diff --git a/ct/changedetection-v5.sh b/ct/changedetection-v5.sh index 7ef66909..152f314b 100644 --- a/ct/changedetection-v5.sh +++ b/ct/changedetection-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ________ ____ __ __ _ / ____/ /_v5____ _____ ____ ____ / __ \___ / /____ _____/ /_(_)___ ____ / / / __ \/ __ `/ __ \/ __ `/ _ \ / / / / _ \/ __/ _ \/ ___/ __/ / __ \/ __ \ @@ -15,7 +17,6 @@ function header_info { /____/ EOF } -clear header_info echo -e "Loading..." APP="Change Detection" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" pip3 install changedetection.io --upgrade &>/dev/null @@ -346,8 +345,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/cronicle-v5.sh b/ct/cronicle-v5.sh index a8ce108b..56c4d075 100644 --- a/ct/cronicle-v5.sh +++ b/ct/cronicle-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ______ _ __ / ____/________v5____ (_)____/ /__ / / / ___/ __ \/ __ \/ / ___/ / _ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Cronicle" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -341,7 +341,6 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb "2" "Install ${APP} Worker" OFF \ 3>&1 1>&2 2>&3) -clear header_info if [ "$UPD" == "1" ]; then if [[ ! -d /opt/cronicle ]]; then @@ -393,8 +392,9 @@ exit fi } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/daemonsync-v5.sh b/ct/daemonsync-v5.sh index 49e06d6c..ccdd178d 100644 --- a/ct/daemonsync-v5.sh +++ b/ct/daemonsync-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ _____ / __ \____ ____ ____ ___ ____ ____ / ___/__v5______ _____ / / / / __ / _ \/ __ __ \/ __ \/ __ \ \__ \/ / / / __ \/ ___/ @@ -15,7 +17,6 @@ function header_info { /____/ EOF } -clear header_info echo -e "Loading..." APP="Daemon Sync" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/dashy-v5.sh b/ct/dashy-v5.sh index 7f51ba45..79981fb6 100644 --- a/ct/dashy-v5.sh +++ b/ct/dashy-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ / __ \____ ______/ /_ __ __ / / / / __ / ___/ __ \/ / / / @@ -15,7 +17,6 @@ function header_info { v5 /____/ EOF } -clear header_info echo -e "Loading..." APP="Dashy" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Stopping ${APP}" systemctl stop dashy @@ -373,8 +372,9 @@ msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/debian-v5.sh b/ct/debian-v5.sh index 02e30838..03bb03ee 100644 --- a/ct/debian-v5.sh +++ b/ct/debian-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ _ / __ \___v5/ /_ (_)___ _____ / / / / _ \/ __ \/ / __ `/ __ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Debian" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/deconz-v5.sh b/ct/deconz-v5.sh index f26890fb..61e4b0ab 100644 --- a/ct/deconz-v5.sh +++ b/ct/deconz-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ __________ _ _______ ____/ /v5 / ____/ __ \/ | / /__ / / __ / _ \/ / / / / / |/ / / / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="deCONZ" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -348,8 +347,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/deluge-v5.sh b/ct/deluge-v5.sh index e69cd92a..b3824328 100644 --- a/ct/deluge-v5.sh +++ b/ct/deluge-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ / __ \___ / /_v5______ ____ / / / / _ \/ / / / / __ `/ _ \ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Deluge" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -335,7 +335,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -343,8 +342,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/devuan-v5.sh b/ct/devuan-v5.sh index fe55f367..3951de1f 100644 --- a/ct/devuan-v5.sh +++ b/ct/devuan-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ / __ \___ _ ____ ______v5____ / / / / _ \ | / / / / / __ `/ __ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Devuan" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/docker-v5.sh b/ct/docker-v5.sh index 25b390a2..98ea5d8c 100644 --- a/ct/docker-v5.sh +++ b/ct/docker-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ / __ \____ _____/ /_v5__ _____ / / / / __ \/ ___/ //_/ _ \/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Docker" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -345,7 +345,6 @@ function install_script() { fi } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -353,8 +352,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated ${APP} LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$FUSE" == "yes" ]; then diff --git a/ct/emby-v5.sh b/ct/emby-v5.sh index 6d9d2fac..9cd4053d 100644 --- a/ct/emby-v5.sh +++ b/ct/emby-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ______ __ / ____/___ v5_ / /_ __ __ / __/ / __ __ \/ __ \/ / / / @@ -15,7 +17,6 @@ function header_info { /____/ EOF } -clear header_info echo -e "Loading..." APP="Emby" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -346,7 +346,6 @@ function install_script() { fi } function update_script() { -clear header_info LATEST=$(curl -sL https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest | grep '"tag_name":' | cut -d'"' -f4) msg_info "Stopping ${APP}" @@ -366,8 +365,9 @@ msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/emqx-v5.sh b/ct/emqx-v5.sh index 3ea8ff96..dd98ce38 100644 --- a/ct/emqx-v5.sh +++ b/ct/emqx-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ________ _______v5 _ __ / ____/ |/ / __ \ | |/ / / __/ / /|_/ / / / / | / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="EMQX" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -346,8 +345,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated ${APP} LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/esphome-v5.sh b/ct/esphome-v5.sh index fb44c748..b63a2141 100644 --- a/ct/esphome-v5.sh +++ b/ct/esphome-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ___________ ____ __ __ / ____/ ___// __ \/ / / /___v5____ ___ ___ / __/ \__ \/ /_/ / /_/ / __ \/ __ `__ \/ _ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="ESPHome" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -337,7 +337,6 @@ function install_script() { fi } function update_script() { -clear header_info msg_info "Stopping ESPHome" systemctl stop esphomeDashboard @@ -353,8 +352,9 @@ msg_ok "Started ESPHome" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/grafana-v5.sh b/ct/grafana-v5.sh index 6ac359a5..ff4b50bb 100644 --- a/ct/grafana-v5.sh +++ b/ct/grafana-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ______ ____ / ____/________ _/ __/___ _____v5____ _ / / __/ ___/ __ / /_/ __ / __ \/ __ / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Grafana" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/grocy-v5.sh b/ct/grocy-v5.sh index c1bb4dbd..fccf9569 100644 --- a/ct/grocy-v5.sh +++ b/ct/grocy-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __________ _______ __ / __ / ___/ __ \/ ___/ / / / / /_/ / / / /_/ / /__/ /_/ / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="grocy" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP}" bash /var/www/html/update.sh @@ -346,8 +345,9 @@ msg_ok "Updated ${APP}" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/heimdalldashboard-v5.sh b/ct/heimdalldashboard-v5.sh index 8d890a1f..d8ab9f21 100644 --- a/ct/heimdalldashboard-v5.sh +++ b/ct/heimdalldashboard-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ _ _ _ ___ _ _ _ /\ /\___(_)_ __ ___ __| | __ _| | | / \__ _ ___| |__ | |__ ___ __ _ _ __ __| | / /_/ / _ \ | '_ ` _ \ / _` |/ _` | | | / /\ / _` / __| '_ \| '_ \ / _ \ / _` | '__/ _` | @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Heimdall Dashboard" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Stopping ${APP}" systemctl disable heimdall.service &>/dev/null @@ -426,8 +425,9 @@ msg_ok "Started ${APP}" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/homeassistant-core-v5.sh b/ct/homeassistant-core-v5.sh index f7c432c5..0914d90e 100644 --- a/ct/homeassistant-core-v5.sh +++ b/ct/homeassistant-core-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ _ _ _ ___ /\ /\___ _ __ ___ ___ /_\ ___ ___(_)___| |_ __ _ _ __ | |_ / __\___v5_ __ ___ / /_/ / _ \| '_ ` _ \ / _ \ //_\\/ __/ __| / __| __/ _` | '_ \| __| / / / _ \| '__/ _ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Home Assistant-Core" @@ -66,23 +67,22 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - msg_error "This script requires Proxmox Virtual Environment 7.0 or greater" +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi +} +function ARCH_CHECK() { + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit fi } -function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" - echo -e "Exiting..." - sleep 2 - exit - fi - } if command -v pveversion >/dev/null 2>&1; then if (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then NEXTID=$(pvesh get /cluster/nextid) @@ -348,7 +348,6 @@ function update_script() { "2" "Install HACS" OFF \ "3" "Install FileBrowser" OFF \ 3>&1 1>&2 2>&3) -clear header_info if [ "$UPD" == "1" ]; then if (whiptail --defaultno --title "SELECT BRANCH" --yesno "Use Beta Branch?" 10 58); then @@ -421,8 +420,9 @@ exit fi } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/homeassistant-v5.sh b/ct/homeassistant-v5.sh index df6808f6..f7787bd9 100644 --- a/ct/homeassistant-v5.sh +++ b/ct/homeassistant-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ __ ___ _ __ __ / / / /___v5____ ___ ___ / | __________(_)____/ /_____ _____ / /_ / /_/ / __ \/ __ __ \/ _ \ / /| | / ___/ ___/ / ___/ __/ __ / __ \/ __/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Home Assistant" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -354,7 +354,6 @@ function update_script() { "3" "Install HACS" OFF \ "4" "Install FileBrowser" OFF \ 3>&1 1>&2 2>&3) -clear header_info if [ "$UPD" == "1" ]; then msg_info "Updating All Containers" @@ -421,8 +420,9 @@ exit fi } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$FUSE" == "yes" ]; then diff --git a/ct/homebridge-v5.sh b/ct/homebridge-v5.sh index 5442b1b1..78b8e237 100644 --- a/ct/homebridge-v5.sh +++ b/ct/homebridge-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ ______ __ _____________ ____ ________ ____________ / / / / __ \/ |/ / ____/ __ )/ __ \/ _/ __ \/ ____/ ____/ / /_/ / / / / /|_/ / __/ / __ / /_/ // // / / / / __/ __/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Homebridge" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/homepage-v5.sh b/ct/homepage-v5.sh index 620dee04..97550a20 100644 --- a/ct/homepage-v5.sh +++ b/ct/homepage-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ __ / / / /___ ____ ___ ___ ____ ____ _____ ____ / /_/ / __ \/ __ `__ \/ _ \/ __ \/ __ `/ __ `/ _ \ @@ -15,7 +17,6 @@ function header_info { /_/ v5 /____/ EOF } -clear header_info echo -e "Loading..." APP="Homepage" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP}" if ! command -v pnpm >/dev/null 2>&1; then @@ -353,8 +352,9 @@ systemctl start homepage msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/homer-v5.sh b/ct/homer-v5.sh index f9b75c3d..58de4b1d 100644 --- a/ct/homer-v5.sh +++ b/ct/homer-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ __ / / / /___ ____ ___v5___ _____ / /_/ / __ \/ __ `__ \/ _ \/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Homer" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Stopping ${APP}" systemctl stop homer @@ -366,8 +365,9 @@ msg_ok "Started ${APP}" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/hyperion-v5.sh b/ct/hyperion-v5.sh index 81e30620..13e00b7b 100644 --- a/ct/hyperion-v5.sh +++ b/ct/hyperion-v5.sh @@ -6,6 +6,7 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { +clear cat <<"EOF" __ __ _ / / / /_ ______v5___ _____(_)___ ____ @@ -16,7 +17,6 @@ cat <<"EOF" EOF } -clear header_info echo -e "Loading..." APP="Hyperion" @@ -65,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -348,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/influxdb-v5.sh b/ct/influxdb-v5.sh index eaf8ada3..4d5e1ca7 100644 --- a/ct/influxdb-v5.sh +++ b/ct/influxdb-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ ______ ____ ____ / _/_v5 / __/ /_ ___ __/ __ \/ __ ) / // __ \/ /_/ / / / / |/_/ / / / __ | @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="InfluxDB" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/iobroker-v5.sh b/ct/iobroker-v5.sh index 55e1d493..97373a1a 100644 --- a/ct/iobroker-v5.sh +++ b/ct/iobroker-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ ____ __ (_)___ / __ )_________ / /_____ _____ / / __ \/ __ / ___/ __ \/ //_/ _ \/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="ioBroker" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/jellyfin-v5.sh b/ct/jellyfin-v5.sh index e5b677be..5281665c 100644 --- a/ct/jellyfin-v5.sh +++ b/ct/jellyfin-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ ____ _____ / /__ / / /_v5__/ __(_)___ __ / / _ \/ / / / / / /_/ / __ \ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Jellyfin" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -348,7 +348,6 @@ function install_script() { fi } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -356,8 +355,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated ${APP} LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/k0s-v5.sh b/ct/k0s-v5.sh index 04c0e1f1..ce4e94ad 100644 --- a/ct/k0s-v5.sh +++ b/ct/k0s-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ ____ __ __ __ __ / /__/ __ \_____ / //_/_ __/ /_ ___v5_________ ___ / /____ _____ / //_/ / / / ___/ / ,< / / / / __ \/ _ \/ ___/ __ \/ _ \/ __/ _ \/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="k0s" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/kavita-v5.sh b/ct/kavita-v5.sh index c5338e4d..afa7a8d2 100644 --- a/ct/kavita-v5.sh +++ b/ct/kavita-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ __ _ __ / //_/___ __ v5__(_) /_____ _ / ,< / __ `/ | / / / __/ __ `/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Kavita" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -337,7 +337,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -345,8 +344,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/keycloak-v5.sh b/ct/keycloak-v5.sh index e4a3aad0..4adf46cf 100644 --- a/ct/keycloak-v5.sh +++ b/ct/keycloak-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ __ __ __ / //_/__v5__ _______/ /___ ____ _/ /__ / ,< / _ \/ / / / ___/ / __ \/ __ / //_/ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Keycloak" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -348,8 +347,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/lidarr-v5.sh b/ct/lidarr-v5.sh index 931ca190..638c94fb 100644 --- a/ct/lidarr-v5.sh +++ b/ct/lidarr-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ _ __ / / (_)___/ /___v5__________ / / / / __ / __ `/ ___/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Lidarr" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/magicmirror-v5.sh b/ct/magicmirror-v5.sh index 5862a8e6..ebfa9d20 100644 --- a/ct/magicmirror-v5.sh +++ b/ct/magicmirror-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ ___ _ __ ____ / |/ /___ _____ _(_)____/ |/ (_)_____________ _____ / /|_/ / __ / __ / / ___/ /|_/ / / ___/ ___/ __ \/ ___/ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="MagicMirror" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" cd /opt/magicmirror @@ -349,8 +348,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/mariadb-v5.sh b/ct/mariadb-v5.sh index 6ea66777..63dadfd9 100644 --- a/ct/mariadb-v5.sh +++ b/ct/mariadb-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ ___ _ ____ ____ / |/ /___ ______(_)___ _/ __ \/ __ ) / /|_/ / __ / ___/ / __ / / / / __ | @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="MariaDB" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/meshcentral-v5.sh b/ct/meshcentral-v5.sh index 79609b9d..0bf47afb 100644 --- a/ct/meshcentral-v5.sh +++ b/ct/meshcentral-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ ___ __ ______ __ __ / |/ /__ _____/ /_ / ____/__ ____ / /__________ _/ / / /|_/ / _ \/ ___/ __ \/ / / _ \/ __ \/ __/ ___/ __ / / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="MeshCentral" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/motioneye-v5.sh b/ct/motioneye-v5.sh index f50a8cf5..1b1176bb 100644 --- a/ct/motioneye-v5.sh +++ b/ct/motioneye-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ ___ __ _ / |/ /___ / /_(_)___ ____v5___ __ _____ / /|_/ / __ \/ __/ / __ \/ __ \/ _ \/ / / / _ \ @@ -15,7 +17,6 @@ function header_info { /____/ EOF } -clear header_info echo -e "Loading..." APP="Motioneye" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" pip install motioneye --upgrade &>/dev/null @@ -346,8 +345,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/mqtt-v5.sh b/ct/mqtt-v5.sh index f5de113d..5eab6ee6 100644 --- a/ct/mqtt-v5.sh +++ b/ct/mqtt-v5.sh @@ -6,6 +6,7 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { +clear cat <<"EOF" __ ___ ____ _ ____________ / |/ /___v5_____/ __ \__ __(_)_ __/_ __/___ @@ -15,7 +16,6 @@ cat <<"EOF" EOF } -clear header_info echo -e "Loading..." APP="MQTT" @@ -64,18 +64,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -337,7 +336,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +345,9 @@ msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/n8n-v5.sh b/ct/n8n-v5.sh index 2132cdd1..85f1d604 100644 --- a/ct/n8n-v5.sh +++ b/ct/n8n-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ___ / _ \ _ __ | (_) |_v5_ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="n8n" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" npm update -g n8n &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/navidrome-v5.sh b/ct/navidrome-v5.sh index 2999950c..5499040d 100644 --- a/ct/navidrome-v5.sh +++ b/ct/navidrome-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ __ _ __ / | / /___ __ v5__(_)___/ /________ ____ ___ ___ / |/ / __ / | / / / __ / ___/ __ \/ __ __ \/ _ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Navidrome" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info RELEASE=$(curl -s https://api.github.com/repos/navidrome/navidrome/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Stopping ${APP}" @@ -358,8 +357,9 @@ msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/nextcloudpi-v5.sh b/ct/nextcloudpi-v5.sh index a8b21172..20f09b56 100644 --- a/ct/nextcloudpi-v5.sh +++ b/ct/nextcloudpi-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ __ __ ________ ______ _ / | / /__ _ __/ /_/ ____/ /___ __v5______/ / __ \(_) / |/ / _ \| |/_/ __/ / / / __ \/ / / / __ / /_/ / / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="NextCloudPi" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/nginxproxymanager-v5.sh b/ct/nginxproxymanager-v5.sh index 94a17159..32f9ee26 100644 --- a/ct/nginxproxymanager-v5.sh +++ b/ct/nginxproxymanager-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ __ _ ____ __ ___ / | / /___ _(_)___ _ __ / __ \_________ _ ____ __ / |/ /___ _____ ____ _____ ____ _____ / |/ / __ / / __ \| |/_/ / /_/ / ___/ __ \| |/_/ / / / / /|_/ / __ / __ \/ __ / __ / _ \/ ___/ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Nginx Proxy Manager" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info RELEASE=$(curl -s https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest | grep "tag_name" | @@ -456,8 +455,9 @@ msg_ok "Cleaned" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/nocodb-v5.sh b/ct/nocodb-v5.sh index c9e31080..e30d090c 100644 --- a/ct/nocodb-v5.sh +++ b/ct/nocodb-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ __ ____ ____ / | / /___ ____v5___ / __ \/ __ ) / |/ / __ \/ ___/ __ \/ / / / __ | @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="NocoDB" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP}" cd /opt/nocodb @@ -350,8 +349,9 @@ msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/node-red-v5.sh b/ct/node-red-v5.sh index e4016d4d..e2c8ebcd 100644 --- a/ct/node-red-v5.sh +++ b/ct/node-red-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ __ __ ____ __ / | / /___ ____/ /__ v5 / __ \___ ____/ / / |/ / __ \/ __ / _ \ / /_/ / _ \/ __ / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Node-Red" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -341,7 +341,6 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb "1" "Update ${APP}" ON \ "2" "Install Themes" OFF \ 3>&1 1>&2 2>&3) -clear header_info if [ "$UPD" == "1" ]; then msg_info "Stopping ${APP}" @@ -367,7 +366,6 @@ THEME=$(whiptail --title "NODE-RED THEMES" --radiolist --cancel-button Exit-Scri "solarized-dark" "" OFF \ "solarized-light" "" OFF \ 3>&1 1>&2 2>&3) -clear header_info msg_info "Installing ${THEME} Theme" cd /root/.node-red @@ -383,8 +381,9 @@ exit fi } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/omada-v5.sh b/ct/omada-v5.sh index 0160d8f5..1b1c4a8d 100644 --- a/ct/omada-v5.sh +++ b/ct/omada-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ / __ \____ ___v5____ _____/ /___ _ / / / / __ __ \/ __ / __ / __ / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Omada" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -345,8 +345,9 @@ function install_script() { advanced_settings fi } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/omv-v5.sh b/ct/omv-v5.sh index cda88be9..75ce494b 100644 --- a/ct/omv-v5.sh +++ b/ct/omv-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ ___ ___ _ __ ____ / __ \____v5___ ____ / |/ /__ ____/ (_)___ | | / /___ ___ __/ / /_ / / / / __ \/ _ \/ __ \/ /|_/ / _ \/ __ / / __ `/ | / / __ `/ / / / / __/ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="OMV" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -348,8 +347,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/openhab-v5.sh b/ct/openhab-v5.sh index c183799f..a43e311e 100644 --- a/ct/openhab-v5.sh +++ b/ct/openhab-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ _____ ____ ____v5____ ___ ____ / / / / | / __ ) / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __ | @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="openHAB" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -348,8 +347,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/paperless-ngx-v5.sh b/ct/paperless-ngx-v5.sh index 4e8ff9c3..49be3557 100644 --- a/ct/paperless-ngx-v5.sh +++ b/ct/paperless-ngx-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ / __ \____ _____ ___ _____/ /__v5__________ ____ ____ __ __ / /_/ / __ `/ __ \/ _ \/ ___/ / _ \/ ___/ ___/___/ __ \/ __ `/ |/_/ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Paperless-ngx" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -345,7 +345,6 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb "1" "Update Paperless-ngx to $RELEASE" ON \ "2" "Paperless-ngx Credentials" OFF \ 3>&1 1>&2 2>&3) -clear header_info if [ "$UPD" == "1" ]; then msg_info "Stopping Paperless-ngx" @@ -415,8 +414,9 @@ exit fi } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/photoprism-v5.sh b/ct/photoprism-v5.sh index 886008c8..72f9d070 100644 --- a/ct/photoprism-v5.sh +++ b/ct/photoprism-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ ______ __________ ____ ____ _________ __ ___ / __ \/ / / / __ \/_ __/ __ \/ __ \/ __ \/ _/ ___// |/ / / /_/ / /_/ / / / / / / / / / / /_/ / /_/ // / \__ \/ /|_/ / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="PhotoPrism" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -337,7 +337,6 @@ function install_script() { } function update_script() { -clear header_info echo -e "\n ⚠️ Ensure you set 2vCPU & 3072MiB RAM MIMIMUM!!! \n" msg_info "Stopping PhotoPrism" @@ -368,8 +367,9 @@ msg_ok "Started PhotoPrism" msg_ok "Update Successful" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/pihole-v5.sh b/ct/pihole-v5.sh index 03fa249b..9df75b50 100644 --- a/ct/pihole-v5.sh +++ b/ct/pihole-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ ____ __ ______ __ ______ / __ \/ _/ / / / / __ \/ / / ____/ / /_/ // /___/ /_/ / / / / / / __/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Pihole" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/plex-v5.sh b/ct/plex-v5.sh index 25555eab..22edee4f 100644 --- a/ct/plex-v5.sh +++ b/ct/plex-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ __ ___ ___ _____ / __ \/ /__ _ __ / |/ /__v5____/ (_)___ _ / ___/___ ______ _____ _____ / /_/ / / _ \| |/_/ / /|_/ / _ \/ __ / / __ `/ \__ \/ _ \/ ___/ | / / _ \/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Plex" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -352,7 +352,6 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb "2" "Run plexupdate" OFF \ 3>&1 1>&2 2>&3) -clear header_info if [ "$UPD" == "1" ]; then msg_info "Updating ${APP} LXC" @@ -366,8 +365,9 @@ bash -c "$(wget -qO - https://raw.githubusercontent.com/mrworf/plexupdate/master exit fi } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/podman-homeassistant-v5.sh b/ct/podman-homeassistant-v5.sh index b1581dff..cef1ac7a 100644 --- a/ct/podman-homeassistant-v5.sh +++ b/ct/podman-homeassistant-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ / __ \____ ____/ /___ ___ ____ _____ / /_/ / __ \/ __ / __ __ \/ __ / __ \ @@ -19,7 +21,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Podman-Home Assistant" @@ -68,18 +69,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -347,7 +347,6 @@ function update_script() { "2" "Install HACS" OFF \ "3" "Install FileBrowser" OFF \ 3>&1 1>&2 2>&3) -clear header_info if [ "$UPD" == "1" ]; then msg_info "Updating ${APP} LXC" @@ -398,8 +397,9 @@ exit fi } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/podman-v5.sh b/ct/podman-v5.sh index 75b3170c..dcf91be9 100644 --- a/ct/podman-v5.sh +++ b/ct/podman-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ / __ \____v5____/ /___ ___ ____ _____ / /_/ / __ \/ __ / __ `__ \/ __ `/ __ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Podman" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/postgresql-v5.sh b/ct/postgresql-v5.sh index f6c599f6..e91afbbb 100644 --- a/ct/postgresql-v5.sh +++ b/ct/postgresql-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ _____ ____ __ / __ \____ _____/ /_____ _________ / ___// __ \ / / / /_/ / __ \/ ___/ __/ __ / ___/ _ \\__ \/ / / / / / @@ -15,7 +17,6 @@ function header_info { /____/ EOF } -clear header_info echo -e "Loading..." APP="PostgreSQL" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/prometheus-v5.sh b/ct/prometheus-v5.sh index 3f61b2c8..4a9183d5 100644 --- a/ct/prometheus-v5.sh +++ b/ct/prometheus-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ __ / __ \_________ ____ ___ ___ / /_/ /_ ___ __ _______ / /_/ / ___/ __ \/ __ __ \/ _ \/ __/ __ \/ _ \/ / / / ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Prometheus" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -347,8 +346,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/prowlarr-v5.sh b/ct/prowlarr-v5.sh index 5a6e998d..4750837b 100644 --- a/ct/prowlarr-v5.sh +++ b/ct/prowlarr-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ / __ \_________ _ __/ /___v5__________ / /_/ / ___/ __ \ | /| / / / __ `/ ___/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Prowlarr" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/radarr-v5.sh b/ct/radarr-v5.sh index 20ed874d..472ba5de 100644 --- a/ct/radarr-v5.sh +++ b/ct/radarr-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ / __ \____ _____/ /___v5__________ / /_/ / __ `/ __ / __ `/ ___/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Radarr" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/readarr-v5.sh b/ct/readarr-v5.sh index 0dffef6a..8ab9a9c7 100644 --- a/ct/readarr-v5.sh +++ b/ct/readarr-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ / __ \___ ____ _____/ /___v5__________ / /_/ / _ \/ __ `/ __ / __ `/ ___/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Readarr" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/rockylinux-v5.sh b/ct/rockylinux-v5.sh index f548f14b..a5b00f02 100644 --- a/ct/rockylinux-v5.sh +++ b/ct/rockylinux-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ____ __ __ _ / __ \____ _____/ /____ __ / / (_)___v5__ ___ __ / /_/ / __ \/ ___/ //_/ / / / / / / / __ \/ / / / |/_/ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Rocky Linux" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" pacman-key --init @@ -348,8 +347,9 @@ pacman -Sy archlinux-keyring && pacman -Su msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/sabnzbd-v5.sh b/ct/sabnzbd-v5.sh index 40bffdbf..9db3ab90 100644 --- a/ct/sabnzbd-v5.sh +++ b/ct/sabnzbd-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _____ ___ ____ __ __ / ___// | / __ )____v5____ / /_ ____/ / \__ \/ /| | / __ / __ \/_ / / __ \/ __ / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="SABnzbd" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/scrypted-v5.sh b/ct/scrypted-v5.sh index cc759881..3c3969cf 100644 --- a/ct/scrypted-v5.sh +++ b/ct/scrypted-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _____ __ __ / ___/____________v5______ / /____ ____/ / \__ \/ ___/ ___/ / / / __ \/ __/ _ \/ __ / @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Scrypted" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -348,8 +347,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/shinobi-v5.sh b/ct/shinobi-v5.sh index cad79e5c..e106c42c 100644 --- a/ct/shinobi-v5.sh +++ b/ct/shinobi-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _____ __ _ __ _ / ___// /_ (_)___v5____ / /_ (_) \__ \/ __ \/ / __ \/ __ \/ __ \/ / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Shinobi" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -346,7 +346,6 @@ function install_script() { fi } function update_script() { -clear header_info msg_info "Updating Shinobi LXC" cd /opt/Shinobi @@ -357,8 +356,9 @@ pm2 restart cron msg_ok "Updated Shinobi LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/sonarr-v5.sh b/ct/sonarr-v5.sh index 7ca8a5d7..593394f4 100644 --- a/ct/sonarr-v5.sh +++ b/ct/sonarr-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _____ / ___/____ ____ ____v5__________ \__ \/ __ \/ __ \/ __ `/ ___/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Sonarr" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/syncthing-v5.sh b/ct/syncthing-v5.sh index 2c1c13d1..f8f6d93e 100644 --- a/ct/syncthing-v5.sh +++ b/ct/syncthing-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _____ __ __ _ / ___/__ ______v5_____/ /_/ /_ (_)___ ____ _ \__ \/ / / / __ \/ ___/ __/ __ \/ / __ \/ __ `/ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Syncthing" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -348,8 +347,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/tdarr-v5.sh b/ct/tdarr-v5.sh index 3319a7e3..c72828f8 100644 --- a/ct/tdarr-v5.sh +++ b/ct/tdarr-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ______ __ /_ __/___/ /___v5__________ / / / __ / __ `/ ___/ ___/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Tdarr" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/technitiumdns-v5.sh b/ct/technitiumdns-v5.sh index 729a6c3b..15ac5433 100644 --- a/ct/technitiumdns-v5.sh +++ b/ct/technitiumdns-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ______ __ _ __ _ ____ _ _______ /_ __/__ _____/ /_ ____ (_) /_(_)_ ______ ___ v5 / __ \/ | / / ___/ / / / _ \/ ___/ __ \/ __ \/ / __/ / / / / __ __ \ / / / / |/ /\__ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Technitium DNS" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" dotnetDir="/opt/dotnet" @@ -409,8 +408,9 @@ fi msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/transmission-v5.sh b/ct/transmission-v5.sh index f99e4644..064229a1 100644 --- a/ct/transmission-v5.sh +++ b/ct/transmission-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ______ _ _ /_ __/________ _____v5_________ ___ (_)_________(_)___ ____ / / / ___/ __ `/ __ \/ ___/ __ `__ \/ / ___/ ___/ / __ \/ __ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Transmission" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated ${APP} LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/trilium-v5.sh b/ct/trilium-v5.sh index e6b8b540..f32b8bc1 100644 --- a/ct/trilium-v5.sh +++ b/ct/trilium-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + ______ _ ___ /_ __/_v5_(_) (_)_ ______ ___ / / / ___/ / / / / / / __ `__ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Trilium" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info RELEASE=$(curl -s https://api.github.com/repos/zadam/trilium/releases/latest | grep "tag_name" | @@ -366,8 +365,9 @@ msg_ok "Started ${APP}" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/ubuntu-v5.sh b/ct/ubuntu-v5.sh index 3416113c..eb23aaa5 100644 --- a/ct/ubuntu-v5.sh +++ b/ct/ubuntu-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ ____ __ / / / / /_v5__ ______ / /___ __ / / / / __ \/ / / / __ \/ __/ / / / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Ubuntu" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -342,7 +342,6 @@ function install_script() { fi } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -350,8 +349,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated ${APP} LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/umbrel-v5.sh b/ct/umbrel-v5.sh index 24c40e7e..913274a1 100644 --- a/ct/umbrel-v5.sh +++ b/ct/umbrel-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ __ __ __ / / / /___ ___v5/ /_ ________ / / / / / / __ `__ \/ __ \/ ___/ _ \/ / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Umbrel" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -346,7 +346,6 @@ function install_script() { fi } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" apt-get update &>/dev/null @@ -354,8 +353,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated ${APP} LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$FUSE" == "yes" ]; then diff --git a/ct/unifi-v5.sh b/ct/unifi-v5.sh index 78b76c0c..895a5122 100644 --- a/ct/unifi-v5.sh +++ b/ct/unifi-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ __ _ _____ / / / /_v5 (_) __(_) / / / / __ \/ / /_/ / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Unifi" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP}" wget -qL https://get.glennr.nl/unifi/update/unifi-update.sh @@ -347,8 +346,9 @@ msg_ok "Updated ${APP}" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/uptimekuma-v5.sh b/ct/uptimekuma-v5.sh index 2af3e44c..8454cb81 100644 --- a/ct/uptimekuma-v5.sh +++ b/ct/uptimekuma-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ __ __ _ __ __ / / / /___ / /_(_)___ ___ ___ v5 / //_/_ ______ ___ ____ _ / / / / __ \/ __/ / __ __ \/ _ \ / ,< / / / / __ __ \/ __ / @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Uptime Kuma" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info LATEST=$(curl -sL https://api.github.com/repos/louislam/uptime-kuma/releases/latest | grep '"tag_name":' | cut -d'"' -f4) msg_info "Stopping ${APP}" @@ -364,8 +363,9 @@ msg_ok "Started ${APP}" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/vaultwarden-v5.sh b/ct/vaultwarden-v5.sh index 6165882d..5c9dbddb 100644 --- a/ct/vaultwarden-v5.sh +++ b/ct/vaultwarden-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ __ ____ _ __ __ | | / /___ ___v5__/ / /| | / /___ __________/ /__ ____ | | / / __ `/ / / / / __/ | /| / / __ `/ ___/ __ / _ \/ __ \ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Vaultwarden" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -351,7 +351,6 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb "3" "Show Admin Token" OFF \ 3>&1 1>&2 2>&3) -clear header_info if [ "$UPD" == "1" ]; then echo -e "\n ⚠️ Ensure you set 2vCPU & 3072MiB RAM MIMIMUM!!! \n" @@ -415,8 +414,9 @@ exit fi } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/whisparr-v5.sh b/ct/whisparr-v5.sh index 87043a9b..63161066 100644 --- a/ct/whisparr-v5.sh +++ b/ct/whisparr-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ ____ _ | | / / /_ (_)________ ____v5__________ | | /| / / __ \/ / ___/ __ \/ __ `/ ___/ ___/ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Whisparr" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -335,7 +335,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -343,8 +342,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/whoogle-v5.sh b/ct/whoogle-v5.sh index d3c6b07c..51acf61b 100644 --- a/ct/whoogle-v5.sh +++ b/ct/whoogle-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ ____ ______ ____ ________ ______ | | v5 / / / / / __ \/ __ \/ ____/ / / ____/ | | /| / / /_/ / / / / / / / / __/ / / __/ @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Whoogle" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating ${APP} LXC" pip3 install whoogle-search --upgrade &>/dev/null @@ -346,8 +345,9 @@ msg_ok "Updated ${APP} LXC" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/wikijs-v5.sh b/ct/wikijs-v5.sh index 5e4ecb02..c9912aef 100644 --- a/ct/wikijs-v5.sh +++ b/ct/wikijs-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ ___ __ _ _ | | v5 / (_) /__(_) (_)____ | | /| / / / //_/ / / / ___/ @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Wikijs" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -339,7 +339,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Stopping ${APP}" systemctl stop wikijs @@ -360,8 +359,9 @@ msg_ok "Started ${APP}" msg_ok "Update Successfull" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/wireguard-v5.sh b/ct/wireguard-v5.sh index ea6c3d1a..249a8205 100644 --- a/ct/wireguard-v5.sh +++ b/ct/wireguard-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _ ___ ______ __ | | / (_)_______ / ____/_ ______ __________/ / | | /| / / / ___/ _ \/ / __/ / / / __ `/ ___/ __ / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Wireguard" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -342,7 +342,6 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb "1" "Update ${APP} LXC" ON \ "2" "Install WGDashboard" OFF \ 3>&1 1>&2 2>&3) -clear header_info if [ "$UPD" == "1" ]; then msg_info "Updating ${APP} LXC" @@ -402,8 +401,9 @@ exit fi } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/yunohost-v5.sh b/ct/yunohost-v5.sh index cabde660..7ae9a540 100644 --- a/ct/yunohost-v5.sh +++ b/ct/yunohost-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + __ __ __ __ __ \ \/ /_ ______v5____ / / / /___ _____/ /_ \ / / / / __ \/ __ \/ /_/ / __ \/ ___/ __/ @@ -15,7 +17,6 @@ __ __ __ __ __ EOF } -clear header_info echo -e "Loading..." APP="YunoHost" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -334,7 +334,6 @@ function install_script() { } function update_script() { -clear header_info msg_info "Updating $APP LXC" apt-get update &>/dev/null @@ -342,8 +341,9 @@ apt-get -y upgrade &>/dev/null msg_ok "Updated $APP LXC" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/zigbee2mqtt-v5.sh b/ct/zigbee2mqtt-v5.sh index 42767d5d..886b8d43 100644 --- a/ct/zigbee2mqtt-v5.sh +++ b/ct/zigbee2mqtt-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _____ _ __ ___ __ _______ ____________ /__ / (_)___ _/ /_ ___ ___ |__ \ / |/ / __ \/_ __/_ __/ / / / / __ / __ \/ _ \/ _ \__/ // /|_/ / / / / / / / / @@ -16,7 +18,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Zigbee2MQTT" @@ -65,18 +66,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -338,7 +338,6 @@ function install_script() { fi } function update_script() { -clear header_info cd /opt/zigbee2mqtt @@ -393,8 +392,9 @@ start_zigbee2mqtt echo "Done!" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then diff --git a/ct/zwave-js-ui-v5.sh b/ct/zwave-js-ui-v5.sh index 293abf26..d114feda 100644 --- a/ct/zwave-js-ui-v5.sh +++ b/ct/zwave-js-ui-v5.sh @@ -6,7 +6,9 @@ # https://github.com/tteck/Proxmox/raw/main/LICENSE function header_info { - cat <<"EOF" +clear +cat <<"EOF" + _____ _______ __ ______ /__ /_ ______ __v5 _____ / / ___/ / / / / _/ / /| | /| / / __ `/ | / / _ \ __ / /\__ \ / / / // / @@ -15,7 +17,6 @@ function header_info { EOF } -clear header_info echo -e "Loading..." APP="Zwave-JS-UI" @@ -64,18 +65,17 @@ function msg_error() { } function PVE_CHECK() { - PVE=$(pveversion | grep "pve-manager/7" | wc -l) - if [[ $PVE != 1 ]]; then - echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater${CL}" - echo -e "Exiting..." - sleep 2 - exit - fi +if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then + echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" + echo -e "Requires PVE Version 7.0 or higher" + echo -e "Exiting..." + sleep 2 + exit +fi } function ARCH_CHECK() { - ARCH=$(dpkg --print-architecture) - if [[ "$ARCH" != "amd64" ]]; then - echo -e "\n ❌ This script will not work with PiMox! \n" + if [ "$(dpkg --print-architecture)" != "amd64" ]; then + echo -e "\n ${CROSS} This script will not work with PiMox! \n" echo -e "Exiting..." sleep 2 exit @@ -337,7 +337,6 @@ function install_script() { fi } function update_script() { -clear header_info RELEASE=$(curl -s https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') msg_info "Stopping Z-wave JS UI" @@ -360,8 +359,9 @@ msg_ok "Cleaned" msg_ok "Updated Successfully!\n" exit } -clear ARCH_CHECK +PVE_CHECK +header_info if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi if [ "$VERB" == "yes" ]; then set -x; fi if [ "$CT_TYPE" == "1" ]; then