From 91984d8aad163a6cde7000309f90e673c3b79cc9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 13 Jan 2017 12:11:20 +0100 Subject: backup: only ping if backup is from remote --- backup.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backup.in b/backup.in index 5ccb617..455585b 100755 --- a/backup.in +++ b/backup.in @@ -64,7 +64,10 @@ else usage fi -ping -c1 ${QuellIP} > /dev/null || exit 11 +if [ -n "${QuellIP}" ] +then + ping -c1 ${QuellIP} > /dev/null || exit 11 +fi if [ -n "${HoppIP}" ] then ping -c1 ${HoppIP} > /dev/null || exit 11 -- cgit v1.2.3-70-g09d2