Add preset for magicmail
[freeside.git] / debian / postinst
1 #!/bin/sh
2 # postinst script for freeside
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # source debconf stuff
9 . /usr/share/debconf/confmodule
10
11 # source dbconfig-common stuff
12 . /usr/share/dbconfig-common/dpkg/postinst 
13
14 dbc_pgsql_createdb_encoding='sql_ascii'
15
16 #echo "i should create the db here"
17 dbc_go freeside $@
18 #echo "db should be craeted now"
19
20 # summary of how this script can be called:
21 #        * <postinst> `configure' <most-recently-configured-version>
22 #        * <old-postinst> `abort-upgrade' <new version>
23 #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
24 #          <new-version>
25 #        * <postinst> `abort-remove'
26 #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
27 #          <failed-install-package> <version> `removing'
28 #          <conflicting-package> <version>
29 # for details, see http://www.debian.org/doc/debian-policy/ or
30 # the debian-policy package
31
32 case "$1" in
33     configure)
34
35     a2enmod perl
36
37     ;;
38
39     abort-upgrade|abort-remove|abort-deconfigure)
40     ;;
41
42     *)
43         echo "postinst called with unknown argument \`$1'" >&2
44         exit 1
45     ;;
46 esac
47
48 # dh_installdeb will replace this with shell code automatically
49 # generated by other debhelper scripts.
50
51 #DEBHELPER#
52
53 exit 0
54