From 3315c7045f2e7a54d86a2f9ca92da412300b396f Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sat, 19 Dec 2020 07:45:21 +0000 Subject: [PATCH] if ubuntu, force 20.04 --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 6eecf18a..3076d9a9 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -SCRIPT_VERSION="27" +SCRIPT_VERSION="28" SCRIPT_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/master/install.sh' GREEN='\033[0;32m' @@ -38,17 +38,17 @@ fi # determine system -if ([ "$osname" = "ubuntu" ] && [ $relno -ge 20 ]) || ([ "$osname" = "debian" ] && [ $relno -ge 10 ]); then +if ([ "$osname" = "ubuntu" ] && [ "$fullrelno" = "20.04" ]) || ([ "$osname" = "debian" ] && [ $relno -ge 10 ]); then echo $fullrel else echo $fullrel - echo "Only Ubuntu release 20.04 and later and Debian 10 and later, are supported" - echo "Your system does not appear to be supported" - exit + echo -ne "${RED}Only Ubuntu release 20.04 and Debian 10 and later, are supported\n" + echo -ne "Your system does not appear to be supported${NC}\n" + exit 1 fi if [ $EUID -eq 0 ]; then - echo -ne "\033[0;31mDo NOT run this script as root. Exiting.\e[0m\n" + echo -ne "${RED}Do NOT run this script as root. Exiting.${NC}\n" exit 1 fi