Package: otrs2 Version: 2.2.7-2lenny1 Severity: normal Tags: patch
The OTRS Apache2 and SysV Init do not allow variable data relocation because they both refer to /var/lib/otrs directly instead of referring to it via the /usr/share/otrs/var symlink. A patch to fix the problem is appended below. -- System Information: Debian Release: 5.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages otrs2 depends on: ii adduser 3.110 add and remove users and groups ii apache2 2.2.9-10+lenny1 Apache HTTP Server metapackage ii apache2-mpm-prefork [htt 2.2.9-10+lenny1 Apache HTTP Server - traditional n ii dbconfig-common 1.8.39 common framework for packaging dat ii debconf 1.5.24 Debian configuration management sy ii libauthen-sasl-perl 2.12-1 Authen::SASL - SASL Authentication ii libcrypt-passwdmd5-perl 1.3-9 interoperable MD5-based crypt() fo ii libdate-pcalc-perl 1.2-3 Perl module for Gregorian calendar ii libdbi-perl 1.605-1 Perl5 database interface by Tim Bu ii libemail-valid-perl 0.179-2 Check validity of Internet email a ii libio-stringy-perl 2.110-4 Perl modules for IO from scalars a ii libmailtools-perl 2.03-1 Manipulate email in perl programs ii libmime-perl 5.427-1 transitional dummy package ii libmime-tools-perl [libm 5.427-1 Perl5 modules for MIME-compliant m ii libtext-diff-perl 0.35-3 Perform diffs on files and record ii libxml-parser-perl 2.36-1.1+b1 Perl module for parsing XML files ii perl 5.10.0-18 Larry Wall's Practical Extraction ii ucf 3.0011 Update Configuration File: preserv Versions of packages otrs2 recommends: ii ispell 3.1.20.0-4.4 International Ispell (an interacti ii libapache2-mod-perl2 2.0.4-4 Integration of perl with the Apach ii libdbd-mysql-perl 4.007-1 A Perl5 database interface to the ii libdbd-pg-perl 2.8.7-1 Perl DBI driver for the PostgreSQL ii libgd-graph-perl 1.44-3 Graph Plotting Module for Perl 5 ii libgd-text-perl 0.86-5 Text utilities for use with GD ii mysql-server 5.0.51a-19 MySQL database server (metapackage ii mysql-server-5.0 [mysql-ser 5.0.51a-19 MySQL database server binaries ii procmail 3.22-16 Versatile e-mail processor Versions of packages otrs2 suggests: pn libnet-ldap-perl <none> (no description available) ii otrs2-doc-en 20080724-1 Open Ticket Request System - Engli -- debconf information: otrs2/remove-error: abort * otrs2/pgsql/method: unix socket * otrs2/pgsql/authmethod-admin: ident otrs2/pgsql/changeconf: false * otrs2/pgsql/authmethod-user: ident otrs2/internal/skip-preseed: false * otrs2/db/dbname: otrs2 otrs2/upgrade-error: abort otrs2/remote/newhost: otrs2/internal/reconfiguring: false otrs2/purge: false * otrs2/database-type: pgsql otrs2/remote/host: otrs2/missing-db-package-error: abort otrs2/mysql/admin-user: root * otrs2/install-error: ignore * otrs2/db/app-user: otrs otrs2/resetdbuser: true otrs2/remote/port: otrs2/upgrade-backup: true * otrs2/pgsql/admin-user: postgres otrs2/dbconfig-reinstall: false otrs2/db/basepath: * otrs2/dbconfig-install: true otrs2/pgsql/manualconf: otrs2/mysql/method: unix socket otrs2/dbconfig-remove: otrs2/pgsql/no-empty-passwords: otrs2/dbconfig-upgrade: true otrs2/passwords-do-not-match: # HG changeset patch # User Bruce Tulloch <deb...@causal.com> # Date 1233126875 -39600 # Node ID 596f83b82604a6554e2b1ab724fc1e7240942bba # Parent e277365644a30d9f13c809cbb6d6138e14f4d097 [OTRS] fixes for relocated variable data [msg9936] OTRS provides a symlink $HOME_OTRS/var which is used to locate the application variable data. In Debian this is /usr/share/otrs/var. However the apache2 configuration and SysV Init do not use it which means that OTRS shutdown is not handled correctly if the variable data is relocate to somewhere other than /var/lib/otrs. This changeset fixes this problem. --- a/etc/apache2/conf.d/otrs2 Wed Jan 28 18:05:34 2009 +1100 +++ b/etc/apache2/conf.d/otrs2 Wed Jan 28 18:14:35 2009 +1100 @@ -34,7 +34,7 @@ Allow from all <IfModule mod_rewrite.c> RewriteEngine On - RewriteCond /var/lib/otrs/httpd/htdocs/maintainance.html -l + RewriteCond /usr/share/otrs/var/httpd/htdocs/maintainance.html -l RewriteRule ^.*$ /otrs-web/maintainance.html </IfModule> </Location> --- a/etc/init.d/otrs2 Wed Jan 28 18:05:34 2009 +1100 +++ b/etc/init.d/otrs2 Wed Jan 28 18:14:35 2009 +1100 @@ -12,14 +12,14 @@ case "$1" in start) - if [ -L /var/lib/otrs/httpd/htdocs/maintainance.html ]; then - rm /var/lib/otrs/httpd/htdocs/maintainance.html + if [ -L /usr/share/otrs/var/httpd/htdocs/maintainance.html ]; then + rm /usr/share/otrs/var/httpd/htdocs/maintainance.html fi ln -s /etc/otrs/cron /etc/cron.d/otrs ;; stop) - ln -s /etc/otrs/maintainance.html /var/lib/otrs/httpd/htdocs/ + ln -s /etc/otrs/maintainance.html /usr/share/otrs/var/httpd/htdocs/ if [ -L /etc/cron.d/otrs ]; then rm /etc/cron.d/otrs fi -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org