mirror of
https://github.com/altstackHQ/altstack-data.git
synced 2026-04-23 17:25:14 +02:00
🤖 Sentinel: Synchronization from aa-humaaan/thealtstack
This commit is contained in:
7
docker-deploy/rocketchat/init-replica.sh
Normal file
7
docker-deploy/rocketchat/init-replica.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
for i in `seq 1 30`; do
|
||||
mongo mongo/rocketchat --eval "rs.initiate({ _id: \"rs0\", members: [ { _id: 0, host: \"localhost:27017\" } ]})" && s=$? && break || s=$?;
|
||||
echo "Tried $i times. Waiting 5s...";
|
||||
sleep 5;
|
||||
done;
|
||||
exit $s
|
||||
Reference in New Issue
Block a user