Bug 950883

Terminate echo statement correctly and set up env vars for MongoDB.
Merge pull request #2151 from BanzaiMan/dev/hasari/bz950883

Merged by openshift-bot