We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 01cbdac + f18b341 commit f5c8b31Copy full SHA for f5c8b31
interoperability-layer-openhim/initiateReplicaSet.sh
@@ -1,7 +1,5 @@
1
#!/bin/bash
2
3
-log info 'Initiating the mongo replica set'
4
-
5
COMPOSE_FILE_PATH=$(
6
cd "$(dirname "${BASH_SOURCE[0]}")" || exit
7
pwd -P
@@ -11,6 +9,8 @@ ROOT_PATH="${COMPOSE_FILE_PATH}/.."
11
9
. "${ROOT_PATH}/utils/config-utils.sh"
12
10
. "${ROOT_PATH}/utils/log.sh"
13
+log info 'Initiating the mongo replica set'
+
14
await_replica_reachable() {
15
local -r SERVICE_NAME="${1:?"FATAL: await_replica_reachable SERVICE_NAME not provided"}"
16
local -r start_time=$(date +%s)
0 commit comments