Author:   Lars Michelsen <[email protected]>
Date:     Wed May 25 20:10:44 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Wed May 25 20:10:44 2011 +0200

Added user question before installing

---

 omd_install.sh |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/omd_install.sh b/omd_install.sh
index 0121288..b69c7ac 100755
--- a/omd_install.sh
+++ b/omd_install.sh
@@ -29,11 +29,19 @@ echo "|                                                     
               |"
 echo "| When installed in local/ path NagVis will use the config and user  |"
 echo "| files of the site.                                                 |"
 echo "|                                                                    |"
-echo "| ONLY RECOMMENDED FOR TESTING                                       |"
+echo "| RECOMMENDED ONLY FOR TESTING                                       |"
 echo "+--------------------------------------------------------------------+"
 
 if [ -z "$OMD_SITE" ] || [ -z "$OMD_ROOT" ]; then
-    echo "ERROR: You are not within an OMD site. Check out 
http://omdistro.org/ for easy installable and manageable Nagios."
+    echo "ERROR: You are not running this inside an OMD site."
+    echo "       Check out http://omdistro.org/ for easy installable and 
manageable Nagios."
+    exit 1
+fi
+
+echo -n "Do you really want to continue? [y] "
+read OPT
+if [ ! -z "$OPT" ] &&  [ $OPT != "y" ]; then
+    echo "Terminated by user."
     exit 1
 fi
 


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to