Mercurial > hg > thermostat-ng > web-gateway
changeset 170:218875206054
Enable auth in mongodb helper script
Reviewed-by: jerboaa
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-June/023524.html
author | Jie Kang <jkang@redhat.com> |
---|---|
date | Thu, 08 Jun 2017 08:48:44 -0400 |
parents | 917366c00614 |
children | c386ec63d473 |
files | distribution/src/bin/thermostat-mongodb.sh distribution/src/windows/bin/thermostat-mongodb.cmd |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/distribution/src/bin/thermostat-mongodb.sh Thu Jun 01 09:12:15 2017 -0400 +++ b/distribution/src/bin/thermostat-mongodb.sh Thu Jun 08 08:48:44 2017 -0400 @@ -96,7 +96,7 @@ mkdir -p ${DB_PATH} mkdir -p ${DATA_PATH} - mongod --quiet ${MONGO_FORK_ARG} --nohttpinterface --bind_ip ${IP} --nojournal --dbpath ${DATA_PATH} --logpath ${LOG_PATH} --pidfilepath ${PID_PATH} --port ${PORT} + mongod --quiet ${MONGO_FORK_ARG} --nohttpinterface --bind_ip ${IP} --nojournal --dbpath ${DATA_PATH} --logpath ${LOG_PATH} --pidfilepath ${PID_PATH} --port ${PORT} --auth if [ ! -f ${SETUP_PATH} ]; then sleep 3
--- a/distribution/src/windows/bin/thermostat-mongodb.cmd Thu Jun 01 09:12:15 2017 -0400 +++ b/distribution/src/windows/bin/thermostat-mongodb.cmd Thu Jun 08 08:48:44 2017 -0400 @@ -61,7 +61,7 @@ if not exist %DB_PATH% mkdir %DB_PATH% if not exist %DATA_PATH% mkdir %DATA_PATH% - start /MIN mongod --quiet --nohttpinterface --bind_ip %IP% --nojournal --dbpath %DATA_PATH% --logpath %LOG_PATH% --pidfilepath %PID_PATH% --port %PORT% + start /MIN mongod --quiet --nohttpinterface --bind_ip %IP% --nojournal --dbpath %DATA_PATH% --logpath %LOG_PATH% --pidfilepath %PID_PATH% --port %PORT% --auth if not exist %SETUP_PATH% ( ping -n 5 localhost >nul