Mercurial > hg > thermostat-ng > web-gateway
changeset 175:5470c4cf4683
Fix mongodb script to authenticate when stopping mongodb
Reviewed-by: jerboaa
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-June/023655.html
author | Jie Kang <jkang@redhat.com> |
---|---|
date | Tue, 13 Jun 2017 11:41:26 -0400 |
parents | 1ce424035c41 |
children | c6f0fb0c4cab |
files | distribution/src/bin/thermostat-mongodb.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/distribution/src/bin/thermostat-mongodb.sh Mon Jun 12 19:07:01 2017 +0200 +++ b/distribution/src/bin/thermostat-mongodb.sh Tue Jun 13 11:41:26 2017 -0400 @@ -107,6 +107,6 @@ if [ $1 == "stop" ]; then if [ -f ${PID_PATH} ]; then - mongo ${IP}:${PORT}/admin --eval "db.shutdownServer()" + mongo ${IP}:${PORT}/admin --eval "db.auth('thermostat-admin','mongodevpassword') && db.shutdownServer()" fi fi