~ubuntu-branches/ubuntu/natty/otrs2/natty-updates

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2010-05-11 14:42:32 UTC
  • Revision ID: package-import@ubuntu.com-20100511144232-8e6523at9l09iofc
Tags: 2.4.7-4
* Check if mod_perl is available before we enable it.
  Closes: #561889
* Do not configure the otrs configurations and database, if
  /etc/otrs/database.pm is not available.
  Closes: #580964
* Move /var/lib/otrs/spool to /var/spool/.
  Closes: #580987

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
  fi
42
42
  ucf --three-way --debconf-ok $OTRSHOME/scripts/apache2-httpd-new.include.conf \
43
43
    /etc/apache2/conf.d/otrs2
44
 
  a2enmod perl
 
44
  if [ -f /etc/apache2/mods-available/perl.load ]; then
 
45
          a2enmod perl
 
46
  fi
45
47
  a2enmod rewrite
46
48
  db_stop
47
49
  invoke-rc.d apache2 force-reload
61
63
  if [ -x /usr/sbin/a2enmod ]; then
62
64
          setup_apache
63
65
  fi
64
 
  /usr/share/otrs/bin/otrs.RebuildConfig.pl > /dev/null 2>&1
 
66
  if [ -f /etc/otrs/database.pm ]; then
 
67
          /usr/share/otrs/bin/otrs.RebuildConfig.pl > /dev/null 2>&1
 
68
  fi
65
69
  $OTRSHOME/bin/SetPermissions.sh $OTRSHOME otrs www-data www-data www-data > /dev/null 2>&1
66
 
  chown root:www-data /var/lib/otrs/Config/ZZZAAuto.pm
 
70
  if [ -f /var/lib/otrs/Config/ZZZAAuto.pm ]; then
 
71
          chown root:www-data /var/lib/otrs/Config/ZZZAAuto.pm
 
72
  fi
67
73
  chown root:www-data /var/lib/otrs/Config
 
74
  chown otrs:www-data /var/spool/otrs
68
75
  chmod 0775 /var/lib/otrs/Config/
 
76
  chmod 0775 /var/spool/otrs
69
77
  ;;
70
78
 
71
79
  *)