X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=rewrite-config.PL;h=6167c5ee009fbcf1daaf2dfa7834d2cb0d4aaab0;hb=cf4144bca8d9a8c4010347d40558f29382d5669c;hp=ec19adeb6877e51ba1f56f6cc93c2794c9a0cd3a;hpb=149ece8541ecc46d9b90f5cd4d8589661f83f811;p=koha.git diff --git a/rewrite-config.PL b/rewrite-config.PL index ec19adeb68..6167c5ee00 100644 --- a/rewrite-config.PL +++ b/rewrite-config.PL @@ -64,7 +64,11 @@ $myhost = hostname(); $mydomain = $myhost; $mydomain =~ s/^.*?\.//; # This is set here to rescue systems with broken DNS -$myip = $ENV{'WEBSERVER_IP'} || inet_ntoa(scalar gethostbyname($myhost||'localhost')) || die "Cannot get our own IP address: DNS fault?"; +if ( !gethostbyname( $myhost || 'localhost' ) ) { + die 'Could not get the IP address of ' . ( $myhost || 'localhost' ) . ', DNS fault?'; +} + +$myip = $ENV{'WEBSERVER_IP'} || inet_ntoa( scalar gethostbyname( $myhost||'localhost' ) ); $prefix = $ENV{'INSTALL_BASE'} || "/usr"; # These are our configuration guesses @@ -126,6 +130,7 @@ $prefix = $ENV{'INSTALL_BASE'} || "/usr"; "__PAZPAR2_TOGGLE_XML_POST__" => '-->', "__AUTH_INDEX_MODE__" => 'grs1', "__RUN_DATABASE_TESTS__" => 'no', + "__PATH_TO_ZEBRA__" => "", ); # Override configuration from the environment