We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9306129 + 84016f7 commit c3409c8Copy full SHA for c3409c8
1 file changed
start-mongodb.sh
@@ -205,10 +205,21 @@ docker exec --tty $MONGODB_CONTAINER_NAME $MONGODB_CLIENT --port $MONGODB_PORT $
205
})
206
"
207
208
+if [ $? -ne 0 ]; then
209
+ echo "Error initiating replica set [$MONGODB_REPLICA_SET]"
210
+ exit 2
211
+fi
212
+
213
echo "Success! Initiated replica set [$MONGODB_REPLICA_SET]"
214
echo "::endgroup::"
215
216
217
echo "::group::Checking replica set status [$MONGODB_REPLICA_SET]"
218
docker exec --tty $MONGODB_CONTAINER_NAME $MONGODB_CLIENT --port $MONGODB_PORT $MONGODB_ARGS --eval "rs.status()"
219
220
221
+ echo "Error checking replica set status [$MONGODB_REPLICA_SET]"
222
223
224
225
0 commit comments