don't try to resolve if WEBSERVER_IP is set and now use WEBSERVER_HOST.
authorMarc Chantreux <marc.chantreux@biblibre.com>
Thu, 8 Jan 2009 00:52:44 +0000 (00:52 +0000)
committerGalen Charlton <galen.charlton@liblime.com>
Tue, 28 Apr 2009 11:51:45 +0000 (06:51 -0500)
commit9902f24c13aaab88ed06ecaf8575173cfc15c51f
tree9f95ca4f308bdcc00676694aff86244ab56ca3c2
parent632955332d947e5a16fe0870f0209edd1671b092
don't try to resolve if WEBSERVER_IP is set and now use WEBSERVER_HOST.

as it crashed the installer when DNS doesn't respond as expected.

it will now use the WEBSERVER_HOST described in the doc but unused in the script.

TODO:

- lot of koha-httpd.conf generation is useless if you plan to use vhosts strategy
- on some recent linux distributions, $(getent hosts `hostname`) will give us
  127.0.0.1. this is to not mess up the MTA when there is no network. Don't
  you think there would be an error message in this case?
- default domain is localdomain .. this is not a good idea but i haven't a better one.
  can a network guru fix that ?

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
rewrite-config.PL