Update install.sh

This commit is contained in:
ITmail-dk
2024-10-16 13:04:52 +02:00
committed by GitHub
parent cefa9db5e6
commit a23db0c187

View File

@@ -15,6 +15,14 @@ FULLUSERNAME=$(awk -v user="$USER" -F":" 'user==$1{print $5}' /etc/passwd | rev
clear 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 # Function to echo, handle errors - Stop the entire installation if an error occurs during the installation
error_handler() { error_handler() {
echo -e "${RED} An error occurred during installation and has been stopped. ${NC}" echo -e "${RED} An error occurred during installation and has been stopped. ${NC}"