From 08cc68cf6cba0b6b52fef302266331d2d0c7dcc4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 27 Jul 2019 10:07:10 +0200 Subject: backup: skip ping check - it fails on clogged connections and the rsync will fail anyways correctly afterwards ... --- backup.in | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/backup.in b/backup.in index cda64f8..e499f02 100755 --- a/backup.in +++ b/backup.in @@ -191,20 +191,6 @@ fi echo $$ > "${pidFile}" -if [ -n "${HoppIP}" ]; then - if ! ping -c 1 -W 20 -${ipVer} "$(extract_ssh_host "${HoppIP}")" >/dev/null; then - rm "${pidFile}" - >&2 echo "cannot ping -c 1 -W 20 -${ipVer} $(extract_ssh_host "${HoppIP}")" - exit 11 - fi -elif [ -n "${QuellIP}" ]; then - if ! ping -c 1 -W 20 -${ipVer} "$(extract_ssh_host "${QuellIP}")" >/dev/null; then - rm "${pidFile}" - >&2 echo "cannot ping -c 1 -W 20 -${ipVer} $(extract_ssh_host "${QuellIP}")" - exit 11 - fi -fi - if [ -n "${tunnelBefehl}" ]; then ${tunnelBefehl} & backgroundPid=$! -- cgit v1.2.3-70-g09d2