forked from HabitRPG/habitica
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue HabitRPG#14349 - Fixed group creation on Docker by updating to …
…Mongo 4.2.8 replica set.
- Loading branch information
root
committed
Dec 25, 2022
1 parent
37d48b3
commit fd1bf33
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Wait for STARTUP and STARTUP2 state to end | ||
while (rs.status().myState === 0 || rs.status().myState === 5) sleep(1000); | ||
|
||
// Run rs.initiate() if not already PRIMARY. | ||
rs.status().myState === 1 || rs.initiate(); |