Sometimes you are forced to use DNS_SETUP_TEST=no and set manually $_MY_OWNIP, because autodiscovery can't get the right one.
(e.g. When you have both IPv4 and IPv6, the answer from the "host" command have a different format from the one expected by the script...)

When you do it, you hit (near line 831) a conditional code where 2 variables are assigned with the same (failing) criterium...

if [ "$_DNS_SETUP_TEST" = "YES" ] ; then
[...]
else
  _THISHTIP=`host $_DOMAIN | cut -d: -f2 | awk '{ print $4}'`
  _THISRDIP=`host $_DOMAIN | cut -d: -f2 | awk '{ print $4}'`
fi

So, variables are not assigned and some config files (like nginx ones) are broken.

Maybe in this case it would be best to do something like:

else
  _THISHTIP = $_MY_OWNIP
  _THISRDIP = $_MY_OWNIP
fi

Comments

omega8cc’s picture

Status: Active » Fixed

Fixed in commit: http://drupalcode.org/project/octopus.git/commit/17eaca4

Thanks for the report!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.