This commit is contained in:
2023-11-25 22:03:28 -06:00
parent b8da839afb
commit 4af22bcffb
4 changed files with 21 additions and 21 deletions

View File

@@ -167,7 +167,7 @@ SERVICE_MGMT(){
nip='localhost '
NCMD=''
else
NCMD="ssh root@${nip}"
NCMD="ssh -o ConnectTimeout=3 root@${nip}"
fi
[ ${QUIET} -eq 0 ] && echo -en "${NM_SRVCOPTS[${SERVICE['action']}]}ing on '$nip'... ${idsCL[Default]}"
@@ -201,7 +201,7 @@ SERVICE_MGMT(){
nip='localhost '
NCMD=''
else
NCMD="ssh root@${nip}"
NCMD="ssh -o ConnectTimeout=3 root@${nip}"
fi
if [ ${QUIET} -eq 0 ]; then
@@ -359,7 +359,7 @@ SERVICE_MGMT(){
nip='localhost '
NCMD=''
else
NCMD="ssh root@${nip}"
NCMD="ssh -o ConnectTimeout=3 root@${nip}"
fi
NOGOCHK=true;
@@ -469,7 +469,7 @@ CHECK_DOCKER_SERVICES(){
for nip in "${!hosts}"; do
if [[ ${RUN_NODE_IP} == *"${nip}"* ]]; then NCMD=''; LH='- localhost'
else NCMD="ssh root@${nip}"; LH=''
else NCMD="ssh -o ConnectTimeout=3 root@${nip}"; LH=''
fi
if [ "${NCMD}" != "" ]; then
checkhost=$(CHECK_HOST ${nip})