Closed (fixed)
Project:
Octopus
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2011 at 00:01 UTC
Updated:
21 Jul 2011 at 10:51 UTC
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
Comment #1
omega8cc commentedFixed in commit: http://drupalcode.org/project/octopus.git/commit/17eaca4
Thanks for the report!