mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
d502ba86d9
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
9 lines
291 B
Bash
Executable File
9 lines
291 B
Bash
Executable File
#!/bin/bash
|
|
mkdir -p ~/.mongo/data
|
|
mongod --config ./mongod.conf --dbpath ~/.mongo/data --directoryperdb --logpath ~/.mongo/mongod.log --fork # --replSet rs0
|
|
# while [ test $$(echo "rs.initiate().ok || rs.status().ok" | mongosh) -eq 1]
|
|
# do
|
|
# echo 'Wait for mongo init'
|
|
# sleep 1
|
|
# done
|