add check for turnkey

This commit is contained in:
wh1te909
2024-08-04 00:30:29 +00:00
parent 2c289a4d8f
commit 716450b97e
2 changed files with 22 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
SCRIPT_VERSION="58"
SCRIPT_VERSION="59"
SCRIPT_URL='https://raw.githubusercontent.com/amidaware/tacticalrmm/master/restore.sh'
sudo apt update
@@ -75,6 +75,16 @@ else
exit 1
fi
if dpkg -l | grep -qi turnkey; then
echo -ne "${RED}Turnkey linux is not supported. Please use the official debian/ubuntu ISO.${NC}\n"
exit 1
fi
if ps aux | grep -v grep | grep -qi webmin; then
echo -ne "${RED}Webmin running, should not be installed. Please use the official debian/ubuntu ISO.${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"
exit 1