From 45efa05e201d2ea1f9a64b492f5ab62541a2452c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 29 Mar 2019 12:29:34 +0100 Subject: backup.in: force to ping with same ip version which will be used by ssh and rsync --- backup.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.in b/backup.in index e8caa03..1831235 100755 --- a/backup.in +++ b/backup.in @@ -170,13 +170,13 @@ fi echo $$ > "${pidFile}" if [ -n "${QuellIP}" ]; then - if ! ping -c1 "$(extract_ssh_host "${QuellIP}")" >/dev/null; then + if ! ping -c1 -${ipVer} "$(extract_ssh_host "${QuellIP}")" >/dev/null; then rm "${pidFile}" exit 11 fi fi if [ -n "${HoppIP}" ]; then - if ! ping -c1 "$(extract_ssh_host "${HoppIP}")" >/dev/null; then + if ! ping -c1 -${ipVer} "$(extract_ssh_host "${HoppIP}")" >/dev/null; then rm "${pidFile}" exit 11 fi -- cgit v1.2.3