diff options
author | Erich Eckner <git@eckner.net> | 2019-04-09 14:39:04 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-04-09 14:43:12 +0200 |
commit | 47f2771b5ffd5d65d8265549daa3bb45af2423e9 (patch) | |
tree | 7804685e4be7d0ad7a17cabfafb8ff8ab574bbe9 /backup.in | |
parent | 5cf3f2e4c88bcd8181e7dca8bad12b11f89d4dab (diff) | |
download | hardlinkedBackups-47f2771b5ffd5d65d8265549daa3bb45af2423e9.tar.xz |
backup.in: only the first hop needs to be reachable via ping (think of firewalls!)
Diffstat (limited to 'backup.in')
-rwxr-xr-x | backup.in | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -169,14 +169,13 @@ fi echo $$ > "${pidFile}" -if [ -n "${QuellIP}" ]; then - if ! ping -c1 -${ipVer} "$(extract_ssh_host "${QuellIP}")" >/dev/null; then +if [ -n "${HoppIP}" ]; then + if ! ping -c1 -${ipVer} "$(extract_ssh_host "${HoppIP}")" >/dev/null; then rm "${pidFile}" exit 11 fi -fi -if [ -n "${HoppIP}" ]; then - if ! ping -c1 -${ipVer} "$(extract_ssh_host "${HoppIP}")" >/dev/null; then +elif [ -n "${QuellIP}" ]; then + if ! ping -c1 -${ipVer} "$(extract_ssh_host "${QuellIP}")" >/dev/null; then rm "${pidFile}" exit 11 fi |