Skip to content

Commit 1573b94

Browse files
Merge pull request #267 from openebs/gtm-4519-1
fix: replace deprecated 'mongo' shell with 'mongosh' for replica set initialization
2 parents cd51f8a + 16f6dea commit 1573b94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/mongo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func initReplicaSet(ns, name string, replicas int) error {
329329
}
330330

331331
cmd := fmt.Sprintf(
332-
`mongo --quiet --eval 'rs.initiate({_id: "%s", members: [%s]})'`,
332+
`mongosh --quiet --eval 'rs.initiate({_id: "%s", members: [%s]})'`,
333333
MongoReplicaSetName,
334334
strings.Join(members, ","),
335335
)

0 commit comments

Comments
 (0)