mirror of
https://github.com/deajan/obackup.git
synced 2025-02-05 19:03:50 +01:00
Fixed an issue with CheckConnectivity3rdPartyHosts
This commit is contained in:
parent
9f49b8d33d
commit
0316c543ad
@ -3,7 +3,7 @@
|
|||||||
###### Remote (or local) backup script for files & databases
|
###### Remote (or local) backup script for files & databases
|
||||||
###### (L) 2013 by Orsiris "Ozy" de Jong (www.netpower.fr)
|
###### (L) 2013 by Orsiris "Ozy" de Jong (www.netpower.fr)
|
||||||
OBACKUP_VERSION=1.84preRC3
|
OBACKUP_VERSION=1.84preRC3
|
||||||
OBACKUP_BUILD=1109201301
|
OBACKUP_BUILD=1309201301
|
||||||
|
|
||||||
DEBUG=no
|
DEBUG=no
|
||||||
SCRIPT_PID=$$
|
SCRIPT_PID=$$
|
||||||
@ -495,6 +495,8 @@ function CheckConnectivity3rdPartyHosts
|
|||||||
if [ "$REMOTE_3RD_PARTY_HOSTS" != "" ]
|
if [ "$REMOTE_3RD_PARTY_HOSTS" != "" ]
|
||||||
then
|
then
|
||||||
remote_3rd_party_success=0
|
remote_3rd_party_success=0
|
||||||
|
OLD_IFS=$IFS
|
||||||
|
IFS=$' \t\n'
|
||||||
for i in $REMOTE_3RD_PARTY_HOSTS
|
for i in $REMOTE_3RD_PARTY_HOSTS
|
||||||
do
|
do
|
||||||
ping $i -c 2 > /dev/null 2>&1
|
ping $i -c 2 > /dev/null 2>&1
|
||||||
@ -505,6 +507,7 @@ function CheckConnectivity3rdPartyHosts
|
|||||||
remote_3rd_party_success=1
|
remote_3rd_party_success=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
IFS=$OLD_IFS
|
||||||
if [ $remote_3rd_party_success -ne 1 ]
|
if [ $remote_3rd_party_success -ne 1 ]
|
||||||
then
|
then
|
||||||
LogError "No remote 3rd party host responded to ping. No internet ?"
|
LogError "No remote 3rd party host responded to ping. No internet ?"
|
||||||
|
Loading…
Reference in New Issue
Block a user