]>
git.proxmox.com Git - dab-pve-appliances.git/blob - debian-6.0-request-tracker/setup-rt
3 # Provides: rt_siteconfig
4 # Required-Start: $remote_fs
6 # X-Start-Before: apache2
9 # Short-Description: Generate RT Siteconfig
10 # Description: Generate RT Siteconfig and gpg keys
15 DOMAIN
=`grep '^search' /etc/resolv.conf|awk '{ print $2; }'`
16 HNAME
=`head -n 1 /etc/hostname|awk '{ print $1; }'`
18 if [ "X${HNAME}" = "Xlocalhost" ] ; then
22 FQDN
=${HNAME}.
${DOMAIN}
24 cat >/etc
/request-tracker3.8
/RT_SiteConfig.d
/50-debconf <<EOF
27 Set(\$rtname, '${FQDN}');
28 Set(\$Organization, '${DOMAIN}');
30 Set(\$CorrespondAddress , 'rt@${FQDN}');
31 Set(\$CommentAddress , 'rt-comment@${FQDN}');
35 Set(\$WebPath , "/rt");
36 Set(\$WebBaseURL , "http://${FQDN}");
40 cat >/etc
/request-tracker3.8
/RT_SiteConfig.d
/45-gnupg <<EOF
43 Set(%GnuPGOptions, undef);
47 update-rt-siteconfig-3.8
50 rm -f /etc
/init.d
/setup-rt