From 3f5cd732d6997fea8d77c169e2f256ea3af44064 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 29 Mar 2019 11:37:06 +0100 Subject: backup.in: translate ssh host to fqdn or whatever before pinging it --- backup.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.in b/backup.in index 7497be4..eeafcdd 100755 --- a/backup.in +++ b/backup.in @@ -155,13 +155,13 @@ fi echo $$ > "${pidFile}" if [ -n "${QuellIP}" ]; then - if ! ping -c1 ${QuellIP} >/dev/null; then + if ! ping -c1 "$(extract_ssh_host "${QuellIP}")" >/dev/null; then rm "${pidFile}" exit 11 fi fi if [ -n "${HoppIP}" ]; then - if ! ping -c1 ${HoppIP} >/dev/null; then + if ! ping -c1 "$(extract_ssh_host "${HoppIP}")" >/dev/null; then rm "${pidFile}" exit 11 fi -- cgit v1.2.3-70-g09d2