From fd4598401dea9edcc56ad59eac8d83bef9d8f452 Mon Sep 17 00:00:00 2001 From: allan Date: Fri, 31 Oct 2025 09:18:08 +0100 Subject: [PATCH] typo --- zabbixinstall | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zabbixinstall b/zabbixinstall index 6f44e3b..d6fe2bc 100755 --- a/zabbixinstall +++ b/zabbixinstall @@ -61,11 +61,9 @@ usage () { # Function inputcheck # inputcheck () { - [[ -z "$hostname" ]] && { usage; echo ""; echo "Error! Hostname empty."; echo ""; exit 1; } + [[ -z "$hostname" ]] && { usage; echo "ERROR: DOMAIN CANNOT BE EMPTY!"; exit 1; } [[ "$hostname" =~ [[:space:]/] ]] && { echo "ERROR: DOMAIN INVALID (no spaces or slashes allowed)"; exit 1; } - [[ -z "$dbname" ]] && { usage; echo ""; echo "Error! Database name empty."; echo ""; exit 1; } - [[ -z "$dbuser" ]] && { usage; echo ""; echo "Error! Database user empty."; echo ""; exit 1; } - [[ -z "$dbpass" ]] && { usage; echo ""; echo "Error! Database password empty."; echo ""; exit 1; } + [[ -z "$dbpass" ]] && { usage; echo "ERROR: DATABASE PASSWORD CANNOT BE EMPTY!"; exit 1; } } # @@ -249,3 +247,4 @@ printf "\nAll Done...\n\n" # # End of script +#