From ca3253e018d610aa354543b660565128b0498bfa Mon Sep 17 00:00:00 2001
From: "Barbara B. Frosik" <bfrosik@aps.anl.gov>
Date: Mon, 24 Aug 2015 21:00:25 +0000
Subject: [PATCH] modified setup.sh so it prompts for if the DM_DATA_DIR if the
 variable is not set. Creates directory if needed

---
 setup.sh | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/setup.sh b/setup.sh
index 6e70d801..9143d010 100644
--- a/setup.sh
+++ b/setup.sh
@@ -20,15 +20,12 @@ if [ -z $DM_INSTALL_DIR ]; then
 fi
 
 if [ -z $DM_DATA_DIR ]; then
-    export DM_DATA_DIR=$DM_ROOT_DIR/../data
-    if [ -d $DM_DATA_DIR ]; then
-        cd $DM_DATA_DIR
-        export DM_DATA_DIR=`pwd`
-    fi
-fi
-if [ ! -d $DM_DATA_DIR ]; then
-    #echo "WARNING: $DM_DATA_DIR directory does not exist. Developers should point DM_DATA_DIR to the desired area." 
-    unset DM_DATA_DIR
+	read -p "Enter Stotage data directory: " Data_Dir
+	if [ ! -d $Data_Dir ]; then
+	    echo "Creating data directory"
+	    mkdir -p "$Data_Dir"
+	fi
+	export DM_DATA_DIR=$dataDir
 fi
 
 if [ -z $DM_VAR_DIR ]; then
-- 
GitLab