trusty: add no-database option
authorBill Erickson <berickxx@gmail.com>
Tue, 28 Oct 2014 14:58:55 +0000 (10:58 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 28 Oct 2014 14:58:55 +0000 (10:58 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
installer/trusty/eg_trusty_installer.sh

index 3f003da..7a75b55 100755 (executable)
@@ -14,7 +14,7 @@
 # GNU General Public License for more details.
 # -----------------------------------------------------------------------
 
-while getopts aystb option
+while getopts aystbd option
 do
         case "${option}"
         in
@@ -23,6 +23,7 @@ do
                 s) SAMPLEDATA=--load-all-sample;;
                 t) LIVETEST=1;;
                 b) NO_BROWSER=1;;
+                d) NO_DATABASE=1;;
         esac
 done
 
@@ -236,6 +237,10 @@ function evergreen_prereqs {
 }
 
 function evergreen_db_prereqs {
+    if [ "$NO_DATABASE" == 1 ]; then
+        echo "_.-~= Skipping Evergreen database pre-requisites"
+        return;
+    fi;
     echo _.-~= Installing Evergreen database pre-requisites
     date
     if [ $YES ]; then
@@ -428,6 +433,10 @@ function install_evergreen {
 }
 
 function configure_database {
+    if [ "$NO_DATABASE" == 1 ]; then
+        echo "_.-~= Skipping configure database"
+        return;
+    fi;
     echo _.-~= configure database
     date
     if [ $YES ]; then