if [ "${db_path}" == "" ]; then db_path=$(source /etc/mongod.conf; echo $dbpath) echo "DBpath is: ${db_path}" else