On 16.04.09 Torsten Werner ([email protected]) wrote:
> On Thu, Apr 16, 2009 at 10:09 AM, Hilmar Preusse <[email protected]> wrote:

Hi Torsten,

> > Tags: patch
> 
> where is the patch?
> 
My first idea was to change the deps of the package, which would give
a trivial change. Hence I ommitted it.... Sorry!

> > /var/lib/dpkg/info/otrs2.postinst: line 44: a2enmod: command not
> > found
> 
> We should certainly check for a2enmod before executing it.
> 
Patch for postinst is attached. The whole setup_apache function
doesn't make any sense if apache2.2-common isn't there.

HTH,
  H.
-- 
sigmentation fault
--- postinst.orig       2009-04-17 12:14:37.483285000 +0200
+++ postinst    2009-04-17 13:23:32.563941600 +0200
@@ -58,7 +58,9 @@
   setup_cron
   ucf --three-way --debconf-ok $OTRSHOME/.fetchmailrc.dist 
/etc/otrs/fetchmailrc
   chmod 600 /etc/otrs/fetchmailrc
-  setup_apache
+  if [ -x /usr/sbin/a2enmod ]; then
+     setup_apache
+  fi
   /usr/share/otrs/bin/otrs.RebuildConfig.pl
   $OTRSHOME/bin/SetPermissions.sh $OTRSHOME otrs www-data www-data www-data
   ;;

Reply via email to