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
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
......
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