Skip to content

Commit

Permalink
Allow to skip all DNS tests in Barracuda by using new _DNS_SETUP_TEST…
Browse files Browse the repository at this point in the history
… flag set to NO.
  • Loading branch information
omega8cc committed Sep 20, 2010
1 parent 0673b6e commit a81fbd5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions BARRACUDA.sh.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,22 @@ _MY_HOSTN=""
_MY_FRONT=""


###----------------------------------------###
### DNS SETUP TEST ###
###----------------------------------------###
###
### If you don't want to test your DNS
### because of some custom local setup
### you know is correct but the script
### can't validate it, set this to:
###
### _DNS_SETUP_TEST="NO"
###
### There is no guarantee it will work.
###
_DNS_SETUP_TEST="YES"


###----------------------------------------###
### SMTP CONNECTION TEST ###
###----------------------------------------###
Expand Down Expand Up @@ -509,6 +525,9 @@ if [ ! -z "$_MY_FRONT" ] ; then
else
_THIS_FRONT="$_THISHOST"
fi
if [ "$_DNS_SETUP_TEST" = "NO" ] ; then
_FQDNTEST=TRUE
fi
if [ "$_FQDNTEST" = "FALSE" ] ; then
echo " "
msg "EXIT on error due to invalid DNS setup."
Expand Down

0 comments on commit a81fbd5

Please sign in to comment.