tag 685502 patch thanks On 08/21/2012 10:00 PM, Daniel Baumann wrote: > if rt really wants to depends on having a FQDN as hostname, then it > needs to handle that gracefully.
patch attached. -- Address: Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern Email: daniel.baum...@progress-technologies.net Internet: http://people.progress-technologies.net/~daniel.baumann/
diff -Naurp request-tracker4.orig/debian/config request-tracker4/debian/config --- request-tracker4.orig/debian/config 2012-05-27 17:29:18.000000000 +0000 +++ request-tracker4/debian/config 2012-08-22 08:01:35.455130587 +0000 @@ -112,12 +112,15 @@ EOF db_version 2.0 db_capb backup +hostname="$(hostname -f)" +hostname="${hostname:-$(hostname)}" + # sane startup defaults RT_SITE_DEFAULT_webpath=/rt -RT_SITE_DEFAULT_webbaseurl=http://$(hostname -f) -RT_SITE_DEFAULT_rtname=rt.$(hostname -f) -RT_SITE_DEFAULT_organization=$(hostname -f) -RT_SITE_DEFAULT_correspondaddress="rt@$(hostname -f)" +RT_SITE_DEFAULT_webbaseurl=http://${hostname} +RT_SITE_DEFAULT_rtname=rt.${hostname} +RT_SITE_DEFAULT_organization=${hostname} +RT_SITE_DEFAULT_correspondaddress="rt@${hostname}" # we always create this to be on the safe side # from now on, $READ_CONFIG_SCRIPT is set