From b56f62e93cb51c090b88f399dbd9dd00baf73a75 Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Tue, 1 Oct 2013 22:59:02 -0400 Subject: [PATCH] update the handling of input for monitor admin --- GenaSYS.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/GenaSYS.sh b/GenaSYS.sh index e927605..e7f3d4f 100755 --- a/GenaSYS.sh +++ b/GenaSYS.sh @@ -25,8 +25,8 @@ PURPOSE_="Generate config files needed for Evergreen-ILS Cluster" SYNOPSIS_="$NAME_" REQUIRES_="standard GNU commands, apt, dpkg" - VERSION_="1.13" - DATE_="2010-09-18; last update: 2013-08-07" + VERSION_="1.14" + DATE_="2010-09-23; last update: 2013-08-07" AUTHOR_="Andy Witter " URL_="http://evergreen-ils.org" CATEGORY_="devel" @@ -768,12 +768,9 @@ echo "In order to configure monitoring for the cluster," echo "(Icinga/Nagios, PhP4Nagios, and Munin) we need to" echo "configure the admin credentials and email contact." read -p "Enter a monitoring admin username. eg monitoradmin: " MONITOR_ADMIN_USERNAME -if [ "$MONITOR_ADMIN_USERNAME" = "" ] -then - MONITOR_ADMIN_USERNAME="monitoradmin" + [ -z "$MONITOR_ADMIN_USERNAME" ] && MONITOR_ADMIN_USERNAME="monitoradmin" echo - echo -e "Setting the monitor admin username to: "$COL_BR_CYAN"monitoradmin"$COL_RESET -fi + echo -e "Setting the monitor admin username to: "$COL_BR_CYAN"$MONITOR_ADMIN_USERNAME"$COL_RESET echo } -- 2.11.0