diff --git a/install.sh b/install.sh index a6aa933e..e72c88a5 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT_VERSION="69" +SCRIPT_VERSION="70" SCRIPT_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/install.sh' sudo apt install -y curl wget dirmngr gnupg lsb-release @@ -29,6 +29,12 @@ fi rm -f $TMP_FILE +arch=$(uname -m) +if [ "$arch" != "x86_64" ]; then + echo -ne "${RED}ERROR: Only x86_64 arch is supported, not ${arch}${NC}\n" + exit 1 +fi + osname=$(lsb_release -si); osname=${osname^} osname=$(echo "$osname" | tr '[A-Z]' '[a-z]') fullrel=$(lsb_release -sd) diff --git a/restore.sh b/restore.sh index cdedacac..d23dc6e4 100755 --- a/restore.sh +++ b/restore.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT_VERSION="43" +SCRIPT_VERSION="44" SCRIPT_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/restore.sh' sudo apt update @@ -29,6 +29,12 @@ fi rm -f $TMP_FILE +arch=$(uname -m) +if [ "$arch" != "x86_64" ]; then + echo -ne "${RED}ERROR: Only x86_64 arch is supported, not ${arch}${NC}\n" + exit 1 +fi + osname=$(lsb_release -si); osname=${osname^} osname=$(echo "$osname" | tr '[A-Z]' '[a-z]') fullrel=$(lsb_release -sd)