Fixed an issue with CheckConnectivity3rdPartyHosts

pull/2/head
Orsiris de Jong 11 years ago
parent ece9117879
commit 8b5e7b6b24

@ -3,7 +3,7 @@
###### Osync - Rsync based two way sync engine with fault tolerance
###### (L) 2013 by Orsiris "Ozy" de Jong (www.netpower.fr)
OSYNC_VERSION=0.99preRC2
OSYNC_BUILD=1109201301
OSYNC_BUILD=1309201301
DEBUG=no
SCRIPT_PID=$$
@ -415,6 +415,8 @@ function CheckConnectivity3rdPartyHosts
if [ "$REMOTE_3RD_PARTY_HOSTS" != "" ]
then
remote_3rd_party_success=0
OLD_IFS=$IFS
IFS=$' \t\n'
for i in $REMOTE_3RD_PARTY_HOSTS
do
ping $i -c 2 > /dev/null 2>&1
@ -425,6 +427,7 @@ function CheckConnectivity3rdPartyHosts
remote_3rd_party_success=1
fi
done
IFS=$OLD_IFS
if [ $remote_3rd_party_success -ne 1 ]
then
LogError "No remote 3rd party host responded to ping. No internet ?"

Loading…
Cancel
Save