diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-03-07 21:57:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-03-07 21:57:33 +0100 |
commit | b70fb900da350631bac8d21821d9a506128a65f4 (patch) | |
tree | 1194e2f2eae9c106b4c95897bbc5a21885c5a48b | |
parent | 2275f14e815a9218685a16de8a9359daaf41913c (diff) | |
download | deployment-b70fb900da350631bac8d21821d9a506128a65f4.tar.gz deployment-b70fb900da350631bac8d21821d9a506128a65f4.tar.bz2 deployment-b70fb900da350631bac8d21821d9a506128a65f4.zip |
fix DNS/ping test
-rwxr-xr-x | netzbon/main.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/netzbon/main.sh b/netzbon/main.sh index f88db95..97841db 100755 --- a/netzbon/main.sh +++ b/netzbon/main.sh @@ -69,8 +69,7 @@ fi # END USER INTERACTION # Check DNS settings -ping -c1 exchange.${DOMAIN_NAME} &> /dev/null -if test 0 != $? +if ! ping -c1 exchange.${DOMAIN_NAME} &> /dev/null then say "Could not ping exchange.${DOMAIN_NAME}." say "Please make sure your DNS/network are working." |