X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=rewrite-config.PL;h=6167c5ee009fbcf1daaf2dfa7834d2cb0d4aaab0;hb=6c13e00bac15fa0be7f9ac915f290837b9d51dc7;hp=f1952c2b1bec00ebd6604f3ac2a0d01e0bbed26d;hpb=6835e192f4bc6b028e5918974665337c43c9b603;p=koha.git diff --git a/rewrite-config.PL b/rewrite-config.PL index f1952c2b1b..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 @@ -125,6 +129,8 @@ $prefix = $ENV{'INSTALL_BASE'} || "/usr"; "__PAZPAR2_TOGGLE_XML_PRE__" => '', "__AUTH_INDEX_MODE__" => 'grs1', + "__RUN_DATABASE_TESTS__" => 'no', + "__PATH_TO_ZEBRA__" => "", ); # Override configuration from the environment