add check for turnkey
This commit is contained in:
12
restore.sh
12
restore.sh
@@ -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
|
||||
|
Reference in New Issue
Block a user