summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-01-13 12:11:20 +0100
committerErich Eckner <git@eckner.net>2017-01-13 12:11:20 +0100
commit91984d8aad163a6cde7000309f90e673c3b79cc9 (patch)
tree4dd7699f66774c9db044121be2303234c45013c6
parent5eee0d912824b37c2aa69353a676c5e4e641d518 (diff)
downloadhardlinkedBackups-91984d8aad163a6cde7000309f90e673c3b79cc9.tar.xz
backup: only ping if backup is from remote
-rwxr-xr-xbackup.in5
1 files changed, 4 insertions, 1 deletions
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