diff options
author | Erich Eckner <git@eckner.net> | 2019-03-29 12:29:34 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-03-29 12:29:34 +0100 |
commit | 45efa05e201d2ea1f9a64b492f5ab62541a2452c (patch) | |
tree | 8b0b42fb8fc8d39a2dc7b1e57d303eed3d1a2978 /backup.in | |
parent | 2b21b8e2cc711de1c02bddaee3acd35cd220a4a6 (diff) | |
download | hardlinkedBackups-45efa05e201d2ea1f9a64b492f5ab62541a2452c.tar.xz |
backup.in: force to ping with same ip version which will be used by ssh and rsync
Diffstat (limited to 'backup.in')
-rwxr-xr-x | backup.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |