summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenat Lumpau <rl03@gentoo.org>2004-08-25 13:01:01 +0000
committerRenat Lumpau <rl03@gentoo.org>2004-08-25 13:01:01 +0000
commitee775c3a0edaf9a9be16f77f8fbc478b199ac315 (patch)
tree8e3e5f1982672c697a379a52248d8b6716b430f7 /www-apps/rt/files/reconfig
parentInitial commit, fixing bug #61322 (Manifest recommit) (diff)
downloadgentoo-2-ee775c3a0edaf9a9be16f77f8fbc478b199ac315.tar.gz
gentoo-2-ee775c3a0edaf9a9be16f77f8fbc478b199ac315.tar.bz2
gentoo-2-ee775c3a0edaf9a9be16f77f8fbc478b199ac315.zip
Initial ebuild. Closes #54764
Diffstat (limited to 'www-apps/rt/files/reconfig')
-rw-r--r--www-apps/rt/files/reconfig26
1 files changed, 26 insertions, 0 deletions
diff --git a/www-apps/rt/files/reconfig b/www-apps/rt/files/reconfig
new file mode 100644
index 000000000000..cf56d1857ce8
--- /dev/null
+++ b/www-apps/rt/files/reconfig
@@ -0,0 +1,26 @@
+#!/bin/bash
+if [ $1 = "start" -o $1 = "install" ]; then
+ # fix location
+ sed -i "s|${MY_HOSTROOTDIR}|${VHOST_ROOT}|g" /usr/bin/standalone_httpd /usr/bin/rt-crontool /usr/bin/webmux.pl /usr/lib/RT.pm
+ sed -i "s|${MY_HOSTROOTDIR}|\/usr|" /usr/bin/mason_handler.scgi
+ sed -i "s|${MY_HTDOCSDIR}|${MY_INSTALLDIR}|" /usr/lib/RT.pm /usr/bin/rt-mailgate
+
+ # fix permissions
+ chown -R ${VHOST_SERVER_GID}:${VHOST_SERVER_UID} /var/rt
+
+ # check for upgrades
+ cd ${MY_HOSTROOTDIR}/rt-config/upgrade
+ for a in *; do
+ if test ${a} '>' ${PV}; then
+ echo "It looks like you need to upgrade your database."
+ echo "To do that, execute"
+ echo "cd ${MY_HOSTROOTDIR}/rt-config/upgrade"
+ echo "rt-setup-database --action schema --datadir ${a}"
+ echo "DO NOT DO THIS without reading /usr/share/doc/${P}/README.gz first"
+ break
+ fi
+ done
+
+else
+ echo $1
+fi