add a mongo-acct script template - to be populated with passwords, etc later

This commit is contained in:
Seth Vidal 2012-10-10 20:01:39 +00:00
parent 94834462a3
commit 7aa6365096
2 changed files with 23 additions and 2 deletions

View file

@ -0,0 +1,7 @@
#!/bin/bash
mongo stickshift_broker_dev --eval 'db.addUser("stickshift", "mooo")'
mongo stickshift_broker_dev --eval 'db.auth_user.update({"_id":"admin"}, {"_id":"admin","user":"admin","password":"2a8462d93a13e51387a5e607cbd1139f"} , true)'
echo "Acct setup done on `date`" > /etc/mongo-acct-setup