log-viewer/mongo-init.sh

12 lines
126 B
Bash
Raw Normal View History

2022-02-14 09:59:21 +00:00
#!/bin/bash
mongo <<EOF
rs.initiate({
_id: 'rs0',
members: [
{_id: 0, host: '127.0.0.1:27017'}
]
})
EOF