mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 13:36:59 +00:00
feat: initiate mongo replset by default
Signed-off-by: Zomatree <me@zomatree.live>
This commit is contained in:
5
scripts/mongo-init.js
Normal file
5
scripts/mongo-init.js
Normal file
@@ -0,0 +1,5 @@
|
||||
try {
|
||||
rs.status();
|
||||
} catch (e) {
|
||||
rs.initiate({ _id: "rs0", members: [{ _id: 0, host: "localhost:27017" }] });
|
||||
}
|
||||
Reference in New Issue
Block a user