Skip to content
Snippets Groups Projects
Commit ca3253e0 authored by Barbara B. Frosik's avatar Barbara B. Frosik
Browse files

modified setup.sh so it prompts for if the DM_DATA_DIR if the variable is not...

modified setup.sh so it prompts for if the DM_DATA_DIR if the variable is not set. Creates directory if needed
parent 866a758e
No related branches found
No related tags found
No related merge requests found
...@@ -20,15 +20,12 @@ if [ -z $DM_INSTALL_DIR ]; then ...@@ -20,15 +20,12 @@ if [ -z $DM_INSTALL_DIR ]; then
fi fi
if [ -z $DM_DATA_DIR ]; then if [ -z $DM_DATA_DIR ]; then
export DM_DATA_DIR=$DM_ROOT_DIR/../data read -p "Enter Stotage data directory: " Data_Dir
if [ -d $DM_DATA_DIR ]; then if [ ! -d $Data_Dir ]; then
cd $DM_DATA_DIR echo "Creating data directory"
export DM_DATA_DIR=`pwd` mkdir -p "$Data_Dir"
fi fi
fi export DM_DATA_DIR=$dataDir
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
fi fi
if [ -z $DM_VAR_DIR ]; then if [ -z $DM_VAR_DIR ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment