Debian Codegraph @

debian/postinst

raw symbols SCIP
1 #! /bin/sh
2 # postinst script for nn
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 . /usr/share/debconf/confmodule
9
10 # summary of how this script can be called:
11 # * <postinst> `configure' <most-recently-configured-version>
12 # * <old-postinst> `abort-upgrade' <new version>
13 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
14 # <new-version>
15 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
16 # <failed-install-package> <version> `removing'
17 # <conflicting-package> <version>
18 # for details, see /usr/share/doc/packaging-manual/
19 #
20 # quoting from the policy:
21 # Any necessary prompting should almost always be confined to the
22 # post-installation script, and should be protected with a conditional
23 # so that unnecessary prompting doesn't happen if a package's
24 # installation fails and the `postinst' is called with `abort-upgrade',
25 # `abort-remove' or `abort-deconfigure'.
26
27 case "$1" in
28 configure)
29 # setting /etc/news/server
30 db_get nn/ask-newsserver || true
31 echo $RET > /etc/news/server
32 db_stop
33 ;;
34
35 abort-upgrade|abort-remove|abort-deconfigure)
36
37 ;;
38
39 *)
40 echo "postinst called with unknown argument \`$1'" >&2
41 exit 0
42 ;;
43 esac
44
45 # dh_installdeb will replace this with shell code automatically
46 # generated by other debhelper scripts.
47
48 #DEBHELPER#
49
50 exit 0
51
52