From: Andy Witter Date: Wed, 2 Oct 2013 02:59:02 +0000 (-0400) Subject: update the handling of input for monitor admin X-Git-Tag: GenaSYS-2.4.0 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b56f62e93cb51c090b88f399dbd9dd00baf73a75;p=contrib%2Fpines%2Fgenasys.git update the handling of input for monitor admin --- 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 }