Update services.inc

This commit is contained in:
2024-01-16 22:26:18 -06:00
parent a20fd31c4f
commit 9e4b671e68

View File

@@ -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