Last active
November 20, 2018 06:22
-
-
Save brygom/61b443586c9208a97a225df693fba771 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
mongo -u mongo-admin -p admin --authenticationDatabase admin <<EOF | |
rs.initiate() | |
rs.add('mong_a:27017') | |
rs.add('mong_b:27017') | |
quit() | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment