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 c430c6328..c7f128046 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 da147dfc8..56035b9d6 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 db759dd5a..5ef6197c0 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 da561a1fc..015661f0d 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 26e18c8cb..0bf2ba402 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 7c6816764..507d2f711 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 59d2c74d3..d82c7a933 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 59da684ae..b3ae3583d 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 809f3d747..f41c1c968 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 61bec458c..95108992f 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 88aa85956..d0d7b8902 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 f10caccb0..41f618b4a 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 d8d5fca00..faaf9a815 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 39305f4a3..c21c5de65 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 d824ab709..f128a1917 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 eb18f3a72..98ed2189a 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 7f6c94109..441ebe059 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 f4a146020..25af81a54 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 7740e7318..87a410904 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 4a50fe38a..7b7334700 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 d77b8d36c..8450b4573 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 6e18ded58..d3a6ee55f 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 c90ee4b05..8b29ccd8a 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 0c381a19e..4935a5c91 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 1c8f40310..e5637edef 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 647798513..032b2ec94 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 053de5a04..45471134d 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 e6f44de49..dc4fe5bf5 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 e42069b0a..a3c650a57 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 f6de91c36..f89a28579 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 71c801d9a..291af104c 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 90e9cd222..e355e1772 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 1f45f8980..7b404d1fc 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 af75b9335..f39c042f8 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 466269e57..62bf3c8e1 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 93a646437..ae1cd2c75 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 46bf2b5fb..8dfdc3cd4 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 802181978..1407f92ca 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 043eebb4a..a9320d6c7 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 2c3eaa77a..5aa8300e8 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 f635f3d6a..d0ed805ba 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 5b7430fe2..07eea8297 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 5e293376e..0ddcf04fd 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 bc702f384..281ffdb57 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 d9125d526..2b0fc124a 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 f2b83c820..ac0a241d7 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 b1ca3aa86..6ee8e8240 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 18e5e1ef5..e7dae7cfd 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 4b54689bb..b4515677d 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 e58638280..09ca26622 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 aab2b0a21..774a37389 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 91b007efa..77d93abe5 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 7a5785499..84f721996 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 7b2dd5a68..2b80642ef 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 3266c3869..5237a3ed4 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 f23f1c324..ab0613630 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 aa63a68db..11929ba56 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 6c172502e..2342d7316 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 199ded64e..1b523e7ac 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 cf31225e2..5281c61d1 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 82f7c71a7..716e925f6 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 54c21a918..b1a2b983a 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 ac9500ffb..75444ab2c 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 41ead7e54..f21011981 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 7d4fe34cd..a267063ab 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 707624b8e..ade50ecef 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 8cff0d8d8..58af3ddbb 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 69437e2ad..87888de46 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 893f9311c..3f188aa6b 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 beab09784..3754dfa31 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 e0a70b50e..c1ff886d0 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 a993d3bcf..c57934f8f 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 a6ab98ad4..23e60e9cd 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 94954f7fe..88dba9c92 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 2406fd20e..80776771c 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 1fd549745..c7db9a0a9 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 fec6b066f..245686290 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 3743a71ac..9928b776e 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 f4db3280c..70fbbe6a1 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 e6aa93bd9..23689d0e2 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 e279912a6..573745c9a 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 e7ed0d627..5adcf8386 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 2c1e15414..2d0142849 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 401b85b73..3e7fab939 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 6ed7022ca..1630ed493 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 411463c07..25a0b51fb 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 e645f8f2c..1574037c9 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 4691eb675..c458183ae 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 492692bcc..891d272e1 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 a6e3e22fb..3b46de9a7 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 9f12ecb5e..ba26e011f 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 537f8bf56..5274f9b7b 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 36a5fef90..5887d22a0 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 995ca428d..9a19d4b9f 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 326705439..0deea5d23 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 771d05689..d10134851 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 73bf41f58..7cc1fd6f9 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 474cc21ec..a41069460 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 8b46ddcfc..a3c2a7b68 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 dbf5a5e88..589a1ff72 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 ad68253e5..0f1b8a79c 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 a8e596d0f..b87aace94 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 2c3b0a1f1..a6c859ccc 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 e8d364c9d..3dd86f9b4 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 1070f9010..12510995e 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 427e7e7a7..e52e3565c 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 4e3f1107e..61dc52bf3 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 2207fb65b..2fb460093 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 c66e96e1c..f6f928c14 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 4825b5ab4..0d7743d4e 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 0de992108..7b6f59f84 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 d726ba0c0..ca581f212 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 9e55abd1f..fac927a23 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 7b991ea33..e415d8f74 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 3a9ebe380..8fd5f8530 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 88cdc0176..b8e733a78 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 4c47da6df..803ce6814 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 6fb92d13b..343b95f9d 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 2d663fca9..9b557c036 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 135b4218d..b908617d5 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 bf24121e2..38229ab0b 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 d8f71fe21..b22673044 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 630b2b040..289694da4 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 81f77d756..60c22a50e 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 f4ec98da7..be5fe841f 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 650023228..deed57970 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 ed21646de..c00bcec02 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 41cc947e9..7d3a7f6c5 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 a92970eb8..e6b6ef7d9 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 bb5ad6b33..6fc2487f3 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 a8785853a..1857c2fd8 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 dd3b594ff..532847adb 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 333635b5c..722884a6b 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 9a44f24e2..973f62b83 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 46a811640..986309c5f 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 1d4d9cc1f..10df801e0 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 317f5841a..1125bd07f 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 3b7394df4..9aff96ea1 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