From a23db0c18718a1fd1290df35bc027b973dd07da9 Mon Sep 17 00:00:00 2001 From: ITmail-dk <48917593+ITmail-dk@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:04:52 +0200 Subject: [PATCH] Update install.sh --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index f5d6490..8886c39 100644 --- a/install.sh +++ b/install.sh @@ -15,6 +15,14 @@ FULLUSERNAME=$(awk -v user="$USER" -F":" 'user==$1{print $5}' /etc/passwd | rev clear +if [ -f /etc/debian_version ]; then + echo "The system is running on Debian Linux, everything is fine..." +else + echo "This installation should only be run on a Debian Linux System." + exit 1 +fi + + # Function to echo, handle errors - Stop the entire installation if an error occurs during the installation error_handler() { echo -e "${RED} An error occurred during installation and has been stopped. ${NC}"