From e392cf9811db00509bfe872d1808b9d373f91334 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 25 Jan 2023 08:14:42 -0500 Subject: [PATCH] add arch check (#981) --- ct/adguard-v4.sh | 9 +++++++++ ct/adguard-v5.sh | 10 ++++++++++ ct/alpine-v5.sh | 10 ++++++++++ ct/archlinux-v5.sh | 10 ++++++++++ ct/autobrr-v5.sh | 10 ++++++++++ ct/blocky-v4.sh | 9 +++++++++ ct/blocky-v5.sh | 10 ++++++++++ ct/casaos-v4.sh | 9 +++++++++ ct/casaos-v5.sh | 10 ++++++++++ ct/changedetection-v4.sh | 9 +++++++++ ct/changedetection-v5.sh | 10 ++++++++++ ct/cronicle-v5.sh | 10 ++++++++++ ct/daemonsync-v4.sh | 9 +++++++++ ct/daemonsync-v5.sh | 10 ++++++++++ ct/dashy-v4.sh | 9 +++++++++ ct/dashy-v5.sh | 10 ++++++++++ ct/debian-v4.sh | 9 +++++++++ ct/debian-v5.sh | 10 ++++++++++ ct/deconz-v4.sh | 9 +++++++++ ct/deconz-v5.sh | 10 ++++++++++ ct/deluge-v5.sh | 10 ++++++++++ ct/docker-v4.sh | 9 +++++++++ ct/docker-v5.sh | 10 ++++++++++ ct/emby-v4.sh | 9 +++++++++ ct/emby-v5.sh | 10 ++++++++++ ct/emqx-v4.sh | 9 +++++++++ ct/emqx-v5.sh | 10 ++++++++++ ct/esphome-v4.sh | 9 +++++++++ ct/esphome-v5.sh | 10 ++++++++++ ct/grafana-v4.sh | 9 +++++++++ ct/grafana-v5.sh | 10 ++++++++++ ct/grocy-v4.sh | 9 +++++++++ ct/grocy-v5.sh | 10 ++++++++++ ct/heimdalldashboard-v4.sh | 9 +++++++++ ct/heimdalldashboard-v5.sh | 10 ++++++++++ ct/homeassistant-core-v4.sh | 9 +++++++++ ct/homeassistant-core-v5.sh | 1 + ct/homeassistant-v4.sh | 9 +++++++++ ct/homeassistant-v5.sh | 10 ++++++++++ ct/homebridge-v4.sh | 9 +++++++++ ct/homebridge-v5.sh | 10 ++++++++++ ct/homepage-v4.sh | 9 +++++++++ ct/homepage-v5.sh | 10 ++++++++++ ct/homer-v5.sh | 10 ++++++++++ ct/hyperion-v4.sh | 9 +++++++++ ct/hyperion-v5.sh | 10 ++++++++++ ct/influxdb-v4.sh | 9 +++++++++ ct/influxdb-v5.sh | 10 ++++++++++ ct/iobroker-v4.sh | 9 +++++++++ ct/iobroker-v5.sh | 10 ++++++++++ ct/jellyfin-v4.sh | 9 +++++++++ ct/jellyfin-v5.sh | 10 ++++++++++ ct/k0s-v5.sh | 10 ++++++++++ ct/kavita-v5.sh | 10 ++++++++++ ct/keycloak-v4.sh | 9 +++++++++ ct/keycloak-v5.sh | 10 ++++++++++ ct/lidarr-v5.sh | 10 ++++++++++ ct/magicmirror-v4.sh | 9 +++++++++ ct/magicmirror-v5.sh | 10 ++++++++++ ct/mariadb-v4.sh | 9 +++++++++ ct/mariadb-v5.sh | 10 ++++++++++ ct/meshcentral-v4.sh | 9 +++++++++ ct/meshcentral-v5.sh | 10 ++++++++++ ct/motioneye-v4.sh | 9 +++++++++ ct/motioneye-v5.sh | 10 ++++++++++ ct/mqtt-v5.sh | 10 ++++++++++ ct/n8n-v4.sh | 9 +++++++++ ct/n8n-v5.sh | 10 ++++++++++ ct/navidrome-v4.sh | 9 +++++++++ ct/navidrome-v5.sh | 10 ++++++++++ ct/nextcloudpi-v4.sh | 9 +++++++++ ct/nextcloudpi-v5.sh | 10 ++++++++++ ct/nginx-proxy-manager-v4.sh | 9 +++++++++ ct/nginxproxymanager-v5.sh | 10 ++++++++++ ct/nocodb-v4.sh | 9 +++++++++ ct/nocodb-v5.sh | 10 ++++++++++ ct/node-red-v4.sh | 9 +++++++++ ct/node-red-v5.sh | 10 ++++++++++ ct/omada-v4.sh | 9 +++++++++ ct/omada-v5.sh | 10 ++++++++++ ct/omv-v4.sh | 9 +++++++++ ct/omv-v5.sh | 10 ++++++++++ ct/openhab-v4.sh | 9 +++++++++ ct/openhab-v5.sh | 10 ++++++++++ ct/paperless-ngx-v4.sh | 9 +++++++++ ct/paperless-ngx-v5.sh | 10 ++++++++++ ct/photoprism-v4.sh | 9 +++++++++ ct/photoprism-v5.sh | 10 ++++++++++ ct/pihole-v4.sh | 9 +++++++++ ct/pihole-v5.sh | 10 ++++++++++ ct/plex-v4.sh | 9 +++++++++ ct/plex-v5.sh | 10 ++++++++++ ct/podman-homeassistant-v4.sh | 9 +++++++++ ct/podman-homeassistant-v5.sh | 10 ++++++++++ ct/podman-v5.sh | 10 ++++++++++ ct/postgresql-v4.sh | 9 +++++++++ ct/postgresql-v5.sh | 10 ++++++++++ ct/prometheus-v4.sh | 9 +++++++++ ct/prometheus-v5.sh | 10 ++++++++++ ct/prowlarr-v5.sh | 10 ++++++++++ ct/radarr-v5.sh | 10 ++++++++++ ct/readarr-v5.sh | 10 ++++++++++ ct/sabnzbd-v5.sh | 10 ++++++++++ ct/scrypted-v4.sh | 9 +++++++++ ct/scrypted-v5.sh | 10 ++++++++++ ct/shinobi-v4.sh | 9 +++++++++ ct/shinobi-v5.sh | 10 ++++++++++ ct/sonarr-v5.sh | 10 ++++++++++ ct/syncthing-v4.sh | 9 +++++++++ ct/syncthing-v5.sh | 10 ++++++++++ ct/tdarr-v5.sh | 10 ++++++++++ ct/technitiumdns-v4.sh | 9 +++++++++ ct/technitiumdns-v5.sh | 10 ++++++++++ ct/transmission-v5.sh | 10 ++++++++++ ct/trilium-v4.sh | 9 +++++++++ ct/trilium-v5.sh | 10 ++++++++++ ct/ubuntu-v4.sh | 9 +++++++++ ct/ubuntu-v5.sh | 10 ++++++++++ ct/umbrel-v4.sh | 9 +++++++++ ct/umbrel-v5.sh | 10 ++++++++++ ct/unifi-v4.sh | 9 +++++++++ ct/unifi-v5.sh | 10 ++++++++++ ct/uptimekuma-v4.sh | 9 +++++++++ ct/uptimekuma-v5.sh | 10 ++++++++++ ct/vaultwarden-v4.sh | 9 +++++++++ ct/vaultwarden-v5.sh | 10 ++++++++++ ct/whisparr-v5.sh | 10 ++++++++++ ct/whoogle-v4.sh | 9 +++++++++ ct/whoogle-v5.sh | 10 ++++++++++ ct/wikijs-v4.sh | 9 +++++++++ ct/wikijs-v5.sh | 10 ++++++++++ ct/wireguard-v4.sh | 9 +++++++++ ct/wireguard-v5.sh | 10 ++++++++++ ct/yunohost-v5.sh | 10 ++++++++++ ct/zigbee2mqtt-v4.sh | 9 +++++++++ ct/zigbee2mqtt-v5.sh | 10 ++++++++++ ct/zwave-js-ui-v4.sh | 9 +++++++++ ct/zwave-js-ui-v5.sh | 10 ++++++++++ 138 files changed, 1312 insertions(+) diff --git a/ct/adguard-v4.sh b/ct/adguard-v4.sh index c430c632..c7f12804 100644 --- a/ct/adguard-v4.sh +++ b/ct/adguard-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/adguard-v5.sh b/ct/adguard-v5.sh index da147dfc..56035b9d 100644 --- a/ct/adguard-v5.sh +++ b/ct/adguard-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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) @@ -350,6 +359,7 @@ exit } clear +ARCH_CHECK 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 db759dd5..5ef6197c 100644 --- a/ct/alpine-v5.sh +++ b/ct/alpine-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -329,6 +338,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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 da561a1f..015661f0 100644 --- a/ct/archlinux-v5.sh +++ b/ct/archlinux-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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 26e18c8c..0bf2ba40 100644 --- a/ct/autobrr-v5.sh +++ b/ct/autobrr-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -342,6 +351,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/blocky-v4.sh index 7c681676..507d2f71 100644 --- a/ct/blocky-v4.sh +++ b/ct/blocky-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/blocky-v5.sh b/ct/blocky-v5.sh index 59d2c74d..d82c7a93 100644 --- a/ct/blocky-v5.sh +++ b/ct/blocky-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/casaos-v4.sh index 59da684a..b3ae3583 100644 --- a/ct/casaos-v4.sh +++ b/ct/casaos-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/casaos-v5.sh b/ct/casaos-v5.sh index 809f3d74..f41c1c96 100644 --- a/ct/casaos-v5.sh +++ b/ct/casaos-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -342,6 +351,7 @@ exit } clear +ARCH_CHECK 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-v4.sh b/ct/changedetection-v4.sh index 61bec458..95108992 100644 --- a/ct/changedetection-v4.sh +++ b/ct/changedetection-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/changedetection-v5.sh b/ct/changedetection-v5.sh index 88aa8595..d0d7b890 100644 --- a/ct/changedetection-v5.sh +++ b/ct/changedetection-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -332,6 +341,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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 f10caccb..41f618b4 100644 --- a/ct/cronicle-v5.sh +++ b/ct/cronicle-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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} Master LXC. Proceed?" 10 58); then @@ -379,6 +388,7 @@ fi } clear +ARCH_CHECK 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-v4.sh b/ct/daemonsync-v4.sh index d8d5fca0..faaf9a81 100644 --- a/ct/daemonsync-v4.sh +++ b/ct/daemonsync-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/daemonsync-v5.sh b/ct/daemonsync-v5.sh index 39305f4a..c21c5de6 100644 --- a/ct/daemonsync-v5.sh +++ b/ct/daemonsync-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/dashy-v4.sh index d824ab70..f128a191 100644 --- a/ct/dashy-v4.sh +++ b/ct/dashy-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/dashy-v5.sh b/ct/dashy-v5.sh index eb18f3a7..98ed2189 100644 --- a/ct/dashy-v5.sh +++ b/ct/dashy-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -359,6 +368,7 @@ exit } clear +ARCH_CHECK 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-v4.sh b/ct/debian-v4.sh index 7f6c9410..441ebe05 100644 --- a/ct/debian-v4.sh +++ b/ct/debian-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/debian-v5.sh b/ct/debian-v5.sh index f4a14602..25af81a5 100644 --- a/ct/debian-v5.sh +++ b/ct/debian-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/deconz-v4.sh index 7740e731..87a41090 100644 --- a/ct/deconz-v4.sh +++ b/ct/deconz-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}" echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}" diff --git a/ct/deconz-v5.sh b/ct/deconz-v5.sh index 4a50fe38..7b733470 100644 --- a/ct/deconz-v5.sh +++ b/ct/deconz-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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 d77b8d36..8450b457 100644 --- a/ct/deluge-v5.sh +++ b/ct/deluge-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -329,6 +338,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/docker-v4.sh index 6e18ded5..d3a6ee55 100644 --- a/ct/docker-v4.sh +++ b/ct/docker-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/docker-v5.sh b/ct/docker-v5.sh index c90ee4b0..8b29ccd8 100644 --- a/ct/docker-v5.sh +++ b/ct/docker-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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) @@ -339,6 +348,7 @@ msg_ok "Updated ${APP} LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/emby-v4.sh index 0c381a19..4935a5c9 100644 --- a/ct/emby-v4.sh +++ b/ct/emby-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}" echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}" diff --git a/ct/emby-v5.sh b/ct/emby-v5.sh index 1c8f4031..e5637ede 100644 --- a/ct/emby-v5.sh +++ b/ct/emby-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -352,6 +361,7 @@ exit } clear +ARCH_CHECK 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-v4.sh b/ct/emqx-v4.sh index 64779851..032b2ec9 100644 --- a/ct/emqx-v4.sh +++ b/ct/emqx-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/emqx-v5.sh b/ct/emqx-v5.sh index 053de5a0..45471134 100644 --- a/ct/emqx-v5.sh +++ b/ct/emqx-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -332,6 +341,7 @@ msg_ok "Updated ${APP} LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/esphome-v4.sh index e6f44de4..dc4fe5bf 100644 --- a/ct/esphome-v4.sh +++ b/ct/esphome-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/esphome-v5.sh b/ct/esphome-v5.sh index e42069b0..a3c650a5 100644 --- a/ct/esphome-v5.sh +++ b/ct/esphome-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -339,6 +348,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/grafana-v4.sh index f6de91c3..f89a2857 100644 --- a/ct/grafana-v4.sh +++ b/ct/grafana-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/grafana-v5.sh b/ct/grafana-v5.sh index 71c801d9..291af104 100644 --- a/ct/grafana-v5.sh +++ b/ct/grafana-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/grocy-v4.sh index 90e9cd22..e355e177 100644 --- a/ct/grocy-v4.sh +++ b/ct/grocy-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/grocy-v5.sh b/ct/grocy-v5.sh index 1f45f898..7b404d1f 100644 --- a/ct/grocy-v5.sh +++ b/ct/grocy-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -332,6 +341,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/heimdalldashboard-v4.sh index af75b933..f39c042f 100644 --- a/ct/heimdalldashboard-v4.sh +++ b/ct/heimdalldashboard-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/heimdalldashboard-v5.sh b/ct/heimdalldashboard-v5.sh index 466269e5..62bf3c8e 100644 --- a/ct/heimdalldashboard-v5.sh +++ b/ct/heimdalldashboard-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -412,6 +421,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/homeassistant-core-v4.sh index 93a64643..ae1cd2c7 100644 --- a/ct/homeassistant-core-v4.sh +++ b/ct/homeassistant-core-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/homeassistant-core-v5.sh b/ct/homeassistant-core-v5.sh index 46bf2b5f..8dfdc3cd 100644 --- a/ct/homeassistant-core-v5.sh +++ b/ct/homeassistant-core-v5.sh @@ -409,6 +409,7 @@ fi } clear +ARCH_CHECK 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-v4.sh b/ct/homeassistant-v4.sh index 80218197..1407f92c 100644 --- a/ct/homeassistant-v4.sh +++ b/ct/homeassistant-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/homeassistant-v5.sh b/ct/homeassistant-v5.sh index 043eebb4..a9320d6c 100644 --- a/ct/homeassistant-v5.sh +++ b/ct/homeassistant-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -407,6 +416,7 @@ fi } clear +ARCH_CHECK 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-v4.sh b/ct/homebridge-v4.sh index 2c3eaa77..5aa8300e 100644 --- a/ct/homebridge-v4.sh +++ b/ct/homebridge-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/homebridge-v5.sh b/ct/homebridge-v5.sh index f635f3d6..d0ed805b 100644 --- a/ct/homebridge-v5.sh +++ b/ct/homebridge-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/homepage-v4.sh index 5b7430fe..07eea829 100644 --- a/ct/homepage-v4.sh +++ b/ct/homepage-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/homepage-v5.sh b/ct/homepage-v5.sh index 5e293376..0ddcf04f 100644 --- a/ct/homepage-v5.sh +++ b/ct/homepage-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -339,6 +348,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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 bc702f38..281ffdb5 100644 --- a/ct/homer-v5.sh +++ b/ct/homer-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -352,6 +361,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/hyperion-v4.sh index d9125d52..2b0fc124 100644 --- a/ct/hyperion-v4.sh +++ b/ct/hyperion-v4.sh @@ -70,6 +70,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}" CT_TYPE="0" diff --git a/ct/hyperion-v5.sh b/ct/hyperion-v5.sh index f2b83c82..ac0a241d 100644 --- a/ct/hyperion-v5.sh +++ b/ct/hyperion-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -334,6 +343,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/influxdb-v4.sh index b1ca3aa8..6ee8e824 100644 --- a/ct/influxdb-v4.sh +++ b/ct/influxdb-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/influxdb-v5.sh b/ct/influxdb-v5.sh index 18e5e1ef..e7dae7cf 100644 --- a/ct/influxdb-v5.sh +++ b/ct/influxdb-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/iobroker-v4.sh index 4b54689b..b4515677 100644 --- a/ct/iobroker-v4.sh +++ b/ct/iobroker-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/iobroker-v5.sh b/ct/iobroker-v5.sh index e5863828..09ca2662 100644 --- a/ct/iobroker-v5.sh +++ b/ct/iobroker-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/jellyfin-v4.sh index aab2b0a2..774a3738 100644 --- a/ct/jellyfin-v4.sh +++ b/ct/jellyfin-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}" diff --git a/ct/jellyfin-v5.sh b/ct/jellyfin-v5.sh index 91b007ef..77d93abe 100644 --- a/ct/jellyfin-v5.sh +++ b/ct/jellyfin-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -342,6 +351,7 @@ msg_ok "Updated ${APP} LXC" exit } clear +ARCH_CHECK 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 7a578549..84f72199 100644 --- a/ct/k0s-v5.sh +++ b/ct/k0s-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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 7b2dd5a6..2b80642e 100644 --- a/ct/kavita-v5.sh +++ b/ct/kavita-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -331,6 +340,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/keycloak-v4.sh index 3266c386..5237a3ed 100644 --- a/ct/keycloak-v4.sh +++ b/ct/keycloak-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/keycloak-v5.sh b/ct/keycloak-v5.sh index f23f1c32..ab061363 100644 --- a/ct/keycloak-v5.sh +++ b/ct/keycloak-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -334,6 +343,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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 aa63a68d..11929ba5 100644 --- a/ct/lidarr-v5.sh +++ b/ct/lidarr-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/magicmirror-v4.sh index 6c172502..2342d731 100644 --- a/ct/magicmirror-v4.sh +++ b/ct/magicmirror-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/magicmirror-v5.sh b/ct/magicmirror-v5.sh index 199ded64..1b523e7a 100644 --- a/ct/magicmirror-v5.sh +++ b/ct/magicmirror-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -335,6 +344,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/mariadb-v4.sh index cf31225e..5281c61d 100644 --- a/ct/mariadb-v4.sh +++ b/ct/mariadb-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/mariadb-v5.sh b/ct/mariadb-v5.sh index 82f7c71a..716e925f 100644 --- a/ct/mariadb-v5.sh +++ b/ct/mariadb-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/meshcentral-v4.sh index 54c21a91..b1a2b983 100644 --- a/ct/meshcentral-v4.sh +++ b/ct/meshcentral-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/meshcentral-v5.sh b/ct/meshcentral-v5.sh index ac9500ff..75444ab2 100644 --- a/ct/meshcentral-v5.sh +++ b/ct/meshcentral-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/motioneye-v4.sh index 41ead7e5..f2101198 100644 --- a/ct/motioneye-v4.sh +++ b/ct/motioneye-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/motioneye-v5.sh b/ct/motioneye-v5.sh index 7d4fe34c..a267063a 100644 --- a/ct/motioneye-v5.sh +++ b/ct/motioneye-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -332,6 +341,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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 707624b8..ade50ece 100644 --- a/ct/mqtt-v5.sh +++ b/ct/mqtt-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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) @@ -333,6 +342,7 @@ exit } clear +ARCH_CHECK 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-v4.sh b/ct/n8n-v4.sh index 8cff0d8d..58af3ddb 100644 --- a/ct/n8n-v4.sh +++ b/ct/n8n-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/n8n-v5.sh b/ct/n8n-v5.sh index 69437e2a..87888de4 100644 --- a/ct/n8n-v5.sh +++ b/ct/n8n-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/navidrome-v4.sh index 893f9311..3f188aa6 100644 --- a/ct/navidrome-v4.sh +++ b/ct/navidrome-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/navidrome-v5.sh b/ct/navidrome-v5.sh index beab0978..3754dfa3 100644 --- a/ct/navidrome-v5.sh +++ b/ct/navidrome-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -344,6 +353,7 @@ exit } clear +ARCH_CHECK 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-v4.sh b/ct/nextcloudpi-v4.sh index e0a70b50..c1ff886d 100644 --- a/ct/nextcloudpi-v4.sh +++ b/ct/nextcloudpi-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}" CT_TYPE="0" diff --git a/ct/nextcloudpi-v5.sh b/ct/nextcloudpi-v5.sh index a993d3bc..c57934f8 100644 --- a/ct/nextcloudpi-v5.sh +++ b/ct/nextcloudpi-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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/nginx-proxy-manager-v4.sh b/ct/nginx-proxy-manager-v4.sh index a6ab98ad..23e60e9c 100644 --- a/ct/nginx-proxy-manager-v4.sh +++ b/ct/nginx-proxy-manager-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/nginxproxymanager-v5.sh b/ct/nginxproxymanager-v5.sh index 94954f7f..88dba9c9 100644 --- a/ct/nginxproxymanager-v5.sh +++ b/ct/nginxproxymanager-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -442,6 +451,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/nocodb-v4.sh index 2406fd20..80776771 100644 --- a/ct/nocodb-v4.sh +++ b/ct/nocodb-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/nocodb-v5.sh b/ct/nocodb-v5.sh index 1fd54974..c7db9a0a 100644 --- a/ct/nocodb-v5.sh +++ b/ct/nocodb-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -336,6 +345,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/node-red-v4.sh index fec6b066..24568629 100644 --- a/ct/node-red-v4.sh +++ b/ct/node-red-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/node-red-v5.sh b/ct/node-red-v5.sh index 3743a71a..9928b776 100644 --- a/ct/node-red-v5.sh +++ b/ct/node-red-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -369,6 +378,7 @@ fi } clear +ARCH_CHECK 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-v4.sh b/ct/omada-v4.sh index f4db3280..70fbbe6a 100644 --- a/ct/omada-v4.sh +++ b/ct/omada-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}" echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" diff --git a/ct/omada-v5.sh b/ct/omada-v5.sh index e6aa93bd..23689d0e 100644 --- a/ct/omada-v5.sh +++ b/ct/omada-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -331,6 +340,7 @@ function install_script() { fi } clear +ARCH_CHECK 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-v4.sh b/ct/omv-v4.sh index e279912a..573745c9 100644 --- a/ct/omv-v4.sh +++ b/ct/omv-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}" CT_TYPE="0" diff --git a/ct/omv-v5.sh b/ct/omv-v5.sh index e7ed0d62..5adcf838 100644 --- a/ct/omv-v5.sh +++ b/ct/omv-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -334,6 +343,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/openhab-v4.sh index 2c1e1541..2d014284 100644 --- a/ct/openhab-v4.sh +++ b/ct/openhab-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/openhab-v5.sh b/ct/openhab-v5.sh index 401b85b7..3e7fab93 100644 --- a/ct/openhab-v5.sh +++ b/ct/openhab-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -334,6 +343,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/paperless-ngx-v4.sh index 6ed7022c..1630ed49 100644 --- a/ct/paperless-ngx-v4.sh +++ b/ct/paperless-ngx-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/paperless-ngx-v5.sh b/ct/paperless-ngx-v5.sh index 411463c0..25a0b51f 100644 --- a/ct/paperless-ngx-v5.sh +++ b/ct/paperless-ngx-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -401,6 +410,7 @@ fi } clear +ARCH_CHECK 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-v4.sh b/ct/photoprism-v4.sh index e645f8f2..1574037c 100644 --- a/ct/photoprism-v4.sh +++ b/ct/photoprism-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/photoprism-v5.sh b/ct/photoprism-v5.sh index 4691eb67..c458183a 100644 --- a/ct/photoprism-v5.sh +++ b/ct/photoprism-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -354,6 +363,7 @@ msg_ok "Update Successful" exit } clear +ARCH_CHECK 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-v4.sh b/ct/pihole-v4.sh index 492692bc..891d272e 100644 --- a/ct/pihole-v4.sh +++ b/ct/pihole-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}" CT_TYPE="0" diff --git a/ct/pihole-v5.sh b/ct/pihole-v5.sh index a6e3e22f..3b46de9a 100644 --- a/ct/pihole-v5.sh +++ b/ct/pihole-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/plex-v4.sh index 9f12ecb5..ba26e011 100644 --- a/ct/plex-v4.sh +++ b/ct/plex-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}" diff --git a/ct/plex-v5.sh b/ct/plex-v5.sh index 537f8bf5..5274f9b7 100644 --- a/ct/plex-v5.sh +++ b/ct/plex-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -352,6 +361,7 @@ exit fi } clear +ARCH_CHECK 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-v4.sh b/ct/podman-homeassistant-v4.sh index 36a5fef9..5887d22a 100644 --- a/ct/podman-homeassistant-v4.sh +++ b/ct/podman-homeassistant-v4.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}" CT_TYPE="0" diff --git a/ct/podman-homeassistant-v5.sh b/ct/podman-homeassistant-v5.sh index 995ca428..9a19d4b9 100644 --- a/ct/podman-homeassistant-v5.sh +++ b/ct/podman-homeassistant-v5.sh @@ -76,6 +76,15 @@ function PVE_CHECK() { 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 @@ -383,6 +392,7 @@ fi } clear +ARCH_CHECK 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 32670543..0deea5d2 100644 --- a/ct/podman-v5.sh +++ b/ct/podman-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/postgresql-v4.sh index 771d0568..d1013485 100644 --- a/ct/postgresql-v4.sh +++ b/ct/postgresql-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/postgresql-v5.sh b/ct/postgresql-v5.sh index 73bf41f5..7cc1fd6f 100644 --- a/ct/postgresql-v5.sh +++ b/ct/postgresql-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/prometheus-v4.sh index 474cc21e..a4106946 100644 --- a/ct/prometheus-v4.sh +++ b/ct/prometheus-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/prometheus-v5.sh b/ct/prometheus-v5.sh index 8b46ddcf..a3c2a7b6 100644 --- a/ct/prometheus-v5.sh +++ b/ct/prometheus-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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 dbf5a5e8..589a1ff7 100644 --- a/ct/prowlarr-v5.sh +++ b/ct/prowlarr-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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 ad68253e..0f1b8a79 100644 --- a/ct/radarr-v5.sh +++ b/ct/radarr-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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 a8e596d0..b87aace9 100644 --- a/ct/readarr-v5.sh +++ b/ct/readarr-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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 2c3b0a1f..a6c859cc 100644 --- a/ct/sabnzbd-v5.sh +++ b/ct/sabnzbd-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/scrypted-v4.sh index e8d364c9..3dd86f9b 100644 --- a/ct/scrypted-v4.sh +++ b/ct/scrypted-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/scrypted-v5.sh b/ct/scrypted-v5.sh index 1070f901..12510995 100644 --- a/ct/scrypted-v5.sh +++ b/ct/scrypted-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -334,6 +343,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/shinobi-v4.sh index 427e7e7a..e52e3565 100644 --- a/ct/shinobi-v4.sh +++ b/ct/shinobi-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}" echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" diff --git a/ct/shinobi-v5.sh b/ct/shinobi-v5.sh index 4e3f1107..61dc52bf 100644 --- a/ct/shinobi-v5.sh +++ b/ct/shinobi-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -343,6 +352,7 @@ msg_ok "Updated Shinobi LXC" exit } clear +ARCH_CHECK 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 2207fb65..2fb46009 100644 --- a/ct/sonarr-v5.sh +++ b/ct/sonarr-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/syncthing-v4.sh index c66e96e1..f6f928c1 100644 --- a/ct/syncthing-v4.sh +++ b/ct/syncthing-v4.sh @@ -70,6 +70,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/syncthing-v5.sh b/ct/syncthing-v5.sh index 4825b5ab..0d7743d4 100644 --- a/ct/syncthing-v5.sh +++ b/ct/syncthing-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -334,6 +343,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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 0de99210..7b6f59f8 100644 --- a/ct/tdarr-v5.sh +++ b/ct/tdarr-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/technitiumdns-v4.sh index d726ba0c..ca581f21 100644 --- a/ct/technitiumdns-v4.sh +++ b/ct/technitiumdns-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/technitiumdns-v5.sh b/ct/technitiumdns-v5.sh index 9e55abd1..fac927a2 100644 --- a/ct/technitiumdns-v5.sh +++ b/ct/technitiumdns-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -395,6 +404,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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 7b991ea3..e415d8f7 100644 --- a/ct/transmission-v5.sh +++ b/ct/transmission-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -328,6 +337,7 @@ msg_ok "Updated ${APP} LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/trilium-v4.sh index 3a9ebe38..8fd5f853 100644 --- a/ct/trilium-v4.sh +++ b/ct/trilium-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/trilium-v5.sh b/ct/trilium-v5.sh index 88cdc017..b8e733a7 100644 --- a/ct/trilium-v5.sh +++ b/ct/trilium-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -352,6 +361,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/ubuntu-v4.sh index 4c47da6d..803ce681 100644 --- a/ct/ubuntu-v4.sh +++ b/ct/ubuntu-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}" echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" diff --git a/ct/ubuntu-v5.sh b/ct/ubuntu-v5.sh index 6fb92d13..343b95f9 100644 --- a/ct/ubuntu-v5.sh +++ b/ct/ubuntu-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -336,6 +345,7 @@ msg_ok "Updated ${APP} LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/umbrel-v4.sh index 2d663fca..9b557c03 100644 --- a/ct/umbrel-v4.sh +++ b/ct/umbrel-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/umbrel-v5.sh b/ct/umbrel-v5.sh index 135b4218..b908617d 100644 --- a/ct/umbrel-v5.sh +++ b/ct/umbrel-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -340,6 +349,7 @@ msg_ok "Updated ${APP} LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/unifi-v4.sh index bf24121e..38229ab0 100644 --- a/ct/unifi-v4.sh +++ b/ct/unifi-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/unifi-v5.sh b/ct/unifi-v5.sh index d8f71fe2..b2267304 100644 --- a/ct/unifi-v5.sh +++ b/ct/unifi-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -333,6 +342,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/uptimekuma-v4.sh index 630b2b04..289694da 100644 --- a/ct/uptimekuma-v4.sh +++ b/ct/uptimekuma-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/uptimekuma-v5.sh b/ct/uptimekuma-v5.sh index 81f77d75..60c22a50 100644 --- a/ct/uptimekuma-v5.sh +++ b/ct/uptimekuma-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -350,6 +359,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/vaultwarden-v4.sh index f4ec98da..be5fe841 100644 --- a/ct/vaultwarden-v4.sh +++ b/ct/vaultwarden-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/vaultwarden-v5.sh b/ct/vaultwarden-v5.sh index 65002322..deed5797 100644 --- a/ct/vaultwarden-v5.sh +++ b/ct/vaultwarden-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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) @@ -401,6 +410,7 @@ fi } clear +ARCH_CHECK 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 ed21646d..c00bcec0 100644 --- a/ct/whisparr-v5.sh +++ b/ct/whisparr-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -329,6 +338,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/whoogle-v4.sh index 41cc947e..7d3a7f6c 100644 --- a/ct/whoogle-v4.sh +++ b/ct/whoogle-v4.sh @@ -68,6 +68,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/whoogle-v5.sh b/ct/whoogle-v5.sh index a92970eb..e6b6ef7d 100644 --- a/ct/whoogle-v5.sh +++ b/ct/whoogle-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -332,6 +341,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/wikijs-v4.sh index bb5ad6b3..6fc2487f 100644 --- a/ct/wikijs-v4.sh +++ b/ct/wikijs-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/wikijs-v5.sh b/ct/wikijs-v5.sh index a8785853..1857c2fd 100644 --- a/ct/wikijs-v5.sh +++ b/ct/wikijs-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -346,6 +355,7 @@ msg_ok "Update Successfull" exit } clear +ARCH_CHECK 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-v4.sh b/ct/wireguard-v4.sh index dd3b594f..532847ad 100644 --- a/ct/wireguard-v4.sh +++ b/ct/wireguard-v4.sh @@ -70,6 +70,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}" CT_TYPE="1" diff --git a/ct/wireguard-v5.sh b/ct/wireguard-v5.sh index 333635b5..722884a6 100644 --- a/ct/wireguard-v5.sh +++ b/ct/wireguard-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -388,6 +397,7 @@ fi } clear +ARCH_CHECK 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 9a44f24e..973f62b8 100644 --- a/ct/yunohost-v5.sh +++ b/ct/yunohost-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -328,6 +337,7 @@ msg_ok "Updated Debian LXC" exit } clear +ARCH_CHECK 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-v4.sh b/ct/zigbee2mqtt-v4.sh index 46a81164..986309c5 100644 --- a/ct/zigbee2mqtt-v4.sh +++ b/ct/zigbee2mqtt-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}" CT_TYPE="0" diff --git a/ct/zigbee2mqtt-v5.sh b/ct/zigbee2mqtt-v5.sh index 1d4d9cc1..10df801e 100644 --- a/ct/zigbee2mqtt-v5.sh +++ b/ct/zigbee2mqtt-v5.sh @@ -73,6 +73,15 @@ function PVE_CHECK() { 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 @@ -363,6 +372,7 @@ msg_ok "Update Successful" exit } clear +ARCH_CHECK 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-v4.sh b/ct/zwave-js-ui-v4.sh index 317f5841..1125bd07 100644 --- a/ct/zwave-js-ui-v4.sh +++ b/ct/zwave-js-ui-v4.sh @@ -69,6 +69,15 @@ function PVE_CHECK() { 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 +} function default_settings() { echo -e "${DGN}Using Container Type: ${BGN}Privileged${CL}" CT_TYPE="0" diff --git a/ct/zwave-js-ui-v5.sh b/ct/zwave-js-ui-v5.sh index 3b7394df..9aff96ea 100644 --- a/ct/zwave-js-ui-v5.sh +++ b/ct/zwave-js-ui-v5.sh @@ -72,6 +72,15 @@ function PVE_CHECK() { 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 @@ -346,6 +355,7 @@ msg_ok "Updated Successfully!\n" exit } clear +ARCH_CHECK 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