exit on install if existing
This commit is contained in:
parent
f694fe00e4
commit
519647ef93
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPT_VERSION="82"
|
||||
SCRIPT_VERSION="83"
|
||||
SCRIPT_URL="https://raw.githubusercontent.com/amidaware/tacticalrmm/master/install.sh"
|
||||
|
||||
sudo apt install -y curl wget dirmngr gnupg lsb-release ca-certificates
|
||||
|
@ -30,6 +30,11 @@ fi
|
|||
|
||||
rm -f $TMP_FILE
|
||||
|
||||
if [ -d /rmm/api/tacticalrmm ]; then
|
||||
echo -ne "${RED}ERROR: Existing trmm installation found. The install script must be run on a clean server.${NC}\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
arch=$(uname -m)
|
||||
if [[ "$arch" != "x86_64" ]] && [[ "$arch" != "aarch64" ]]; then
|
||||
echo -ne "${RED}ERROR: Only x86_64 and aarch64 is supported, not ${arch}${NC}\n"
|
||||
|
|
Loading…
Reference in New Issue