echo "" . ./_mongodb_os_dist_ver.bash if [ "x$MONGODB_HOME" = "x" ] ; then #export MONGODB_HOME="$PWD/mongodb-linux-x86_64-ubuntu2004-7.0.4/" #export MONGODB_HOME="$PWD/mongodb-linux-x86_64-rhel80-7.0.5/" export MONGODB_HOME="$PWD/mongodb-$mongodb_os_dist_ver/" 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-$mongosh_os_ver" 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 ""