Update services.inc
This commit is contained in:
@@ -298,13 +298,13 @@ SERVICE_MGMT(){
|
||||
if [ "${SERVICE['action']}" = "start" ] || [ "${SERVICE['action']}" = "restart" ] || [ "${SERVICE['action']}" = "reload" ]; then
|
||||
if [ "${SERVICE['node']}" != "ns" ]; then
|
||||
[ ${QUIET} -eq 0 ] && echo -en "${idsCL[LightYellow]}Verifying replication across the nodes... ${idsCL[Default]}"
|
||||
echo "HERE: ${NT_HOSTS} = ${!NT_HOSTS}"
|
||||
if [[ "${RUN_NODE_IP}" == *"${!NT_HOST}"* ]]; then
|
||||
PH_CMD=""
|
||||
else
|
||||
PH_CMD="ssh -q -o ConnectTimeout=1 -o ConnectionAttempts=1 root@${!NT_HOST}"
|
||||
fi
|
||||
${PH_CMD} touch ${NM_REPL_CHECK_LOC[${SERVICE['service']}]}/test.repl
|
||||
echo "HERE: ${NT_HOSTS} = ${!NT_HOSTS}"
|
||||
for nip in "${!NT_HOSTS}"; do
|
||||
checkhost=$(CHECK_HOST ${nip})
|
||||
if [ "${checkhost}" != "false" ] && [ "${nip}" != "${!NT_HOST}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user