fix for #2884: Add error management to branches
[koha.git] / debian / libkoha-perl.postinst
1 #!/bin/sh
2 set -e
3
4 # Load the debconf library - this must come FIRST; do not insert any other
5 # commands before this
6 . /usr/share/debconf/confmodule
7
8 echo "INFO: postinst as '$1'"
9
10 case "$1" in
11   configure)
12     echo "Configuring..."
13     
14     # set up logrotate
15     # remove first in case we are reconfiguring
16 #    rm /etc/logrotate.d/koha
17     
18     # add logrotate
19     ln -s /etc/koha/koha.logrotate /etc/logrotate.d/koha
20     
21     # reload apache
22     /etc/init.d/apache2 reload
23     ;;
24     
25   abort-upgrade|abort-remove|abort-deconfigure)
26     ;;
27     
28   *)
29     echo "postinst called with unknown argument \$1'" >&2
30     exit 0
31     ;;
32 esac
33
34 #DEBHELPER#
35
36 # finish up
37 db_stop
38 exit 0