diff options
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 |