echo "" if [ "x$MONGODB_HOME" = "x" ] ; then export MONGODB_HOME="$PWD/mongodb-linux-x86_64-ubuntu2004-7.0.4/" export PATH="$MONGODB_HOME/bin:$PATH" echo "Set MONGODB_HOME and updated PATH" else echo "MONGODB_HOME is already set" fi if [ "x$MONGOSH_HOME" = "x" ] ; then export MONGOSH_HOME="$PWD/mongosh-2.1.1-linux-x64" export PATH="$MONGOSH_HOME/bin:$PATH" echo "Set MONGOSH_HOME and updated PATH" else echo "MONGOSH_HOME is already set" fi echo "" if [ ! -d data ] ; then mkdir -v data else echo "'data' directory already exists" fi if [ ! -d log ] ; then mkdir -v log else echo "'log' directory already exists" fi export GS_MONGODB_PORT=27017 echo "" echo "Setting GS MongoDB Port to:" echo " $GS_MONGODB_PORT" echo ""