diff --git a/install.sh b/install.sh index e72c88a5..efa5aca1 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT_VERSION="70" +SCRIPT_VERSION="71" SCRIPT_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/install.sh' sudo apt install -y curl wget dirmngr gnupg lsb-release @@ -35,6 +35,12 @@ if [ "$arch" != "x86_64" ]; then exit 1 fi +memTotal=$(grep -i memtotal /proc/meminfo | awk '{print $2}') +if [[ $memTotal -lt 3627528 ]]; then + echo -ne "${RED}ERROR: A minimum of 4GB of RAM is required.${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 43a3f709..12a22ae1 100755 --- a/restore.sh +++ b/restore.sh @@ -35,6 +35,12 @@ if [ "$arch" != "x86_64" ]; then exit 1 fi +memTotal=$(grep -i memtotal /proc/meminfo | awk '{print $2}') +if [[ $memTotal -lt 3627528 ]]; then + echo -ne "${RED}ERROR: A minimum of 4GB of RAM is required.${NC}\n" + exit 1 +fi + osname=$(lsb_release -si); osname=${osname^} osname=$(echo "$osname" | tr '[A-Z]' '[a-z]') fullrel=$(lsb_release -sd)