Compat zope-2.12 : résolution des problèmes avec les interfaces.
[GroupUserFolder.git] / debian / postinst
1 #! /bin/sh
2 #----------------------------------------------------------------
3 # Simple `.postinst' script for zope-* packages.
4 # First coded by Luca - De Whiskey's - De Vitis <luca@debian.org>
5 #----------------------------------------------------------------
6
7 set -e
8
9 # summary of how this script can be called:
10 # * <postinst> `configure' <most-recently-configured-version>
11 # * <old-postinst> `abort-upgrade' <new version>
12 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
13 # <new-version>
14 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15 # <failed-install-package> <version> `removing'
16 # <conflicting-package> <version>
17 # for details, see /usr/doc/packaging-manual/
18 #
19 # quoting from the policy:
20 # Any necessary prompting should almost always be confined to the
21 # post-installation script, and should be protected with a conditional
22 # so that unnecessary prompting doesn't happen if a package's
23 # installation fails and the `postinst' is called with `abort-upgrade',
24 # `abort-remove' or `abort-deconfigure'.
25
26 # Load confmodule.
27 . /usr/share/debconf/confmodule
28 db_version 2.0
29
30 case "$1" in
31 configure)
32 # Get the answer.
33 db_get "$(basename $0 .postinst)/postinst" || true
34 test "$RET" = "true" && /etc/init.d/zope restart
35 ;;
36 abort-upgrade|abort-remove|abort-deconfigure)
37 ;;
38 *)
39 echo "postinst called with unknown argument \`$1'" >&2
40 exit 0
41 ;;
42 esac
43
44 # Stop the communication with the db.
45 db_stop
46
47 #DEBHELPER#
48
49 # That's all folks!
50 exit 0