Debian Codegraph @

debian/dict-de-en.postinst

raw
1 #! /bin/sh
2 #
3 # see: dh_installdeb(1)
4
5 set -e
6
7 # summary of how this script can be called:
8 # * <postinst> `configure' <most-recently-configured-version>
9 # * <old-postinst> `abort-upgrade' <new version>
10 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
11 # <new-version>
12 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
13 # <failed-install-package> <version> `removing'
14 # <conflicting-package> <version>
15 # for details, see http://www.debian.org/doc/debian-policy/ or
16 # the debian-policy package
17 #
18 # quoting from the policy:
19 # Any necessary prompting should almost always be confined to the
20 # post-installation script, and should be protected with a conditional
21 # so that unnecessary prompting doesn't happen if a package's
22 # installation fails and the `postinst' is called with `abort-upgrade',
23 # `abort-remove' or `abort-deconfigure'.
24
25 case "$1" in
26 configure)
27 command -v dictdconfig >/dev/null && dictdconfig -w
28
29 if [ -x /etc/init.d/dictd ]
30 then
31 if command -v invoke-rc.d >/dev/null
32 then
33 invoke-rc.d dictd restart
34 else
35 /etc/init.d/dictd restart
36 fi
37 fi
38 ;;
39
40 abort-upgrade|abort-remove|abort-deconfigure)
41 ;;
42
43 *)
44 echo "postinst called with unknown argument \`$1'" >&2
45 exit 1
46 ;;
47 esac
48
49 # dh_installdeb will replace this with shell code automatically
50 # generated by other debhelper scripts.
51
52 #DEBHELPER#
53
54 exit 0