This file is indexed.

postinst is in med-pharmacy 1.13.2ubuntu3.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/sh
set -e

# This is the default postinst file from the blends-dev package which is used
# in all meta packages.  If there is a certain need to provide extra
# postinst files for some meta packages this template will be appended.  Thus
# it will be checked whether debconf was just initialized.
#
# You should not insert the _DEBHELPER_ template in the special postscript
# file because it is in the end of this template anyway.

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <postinst> `abort-remove'
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package

###########################################################################
# If the user menus are not needed/wished for a Blend (like for instance
# Debian Edu there is no need to install blends-common package.  Thus we
# have to make sure that postinst does not try to include the menu stuff
if [ -d /etc/blends -a -f /etc/blends/blends.conf ] ; then
    # Also verify that this Blend provides special configuration
    # If not there is no need to execute the user menu code
    if [ -d /etc/blends/med -a -f /etc/blends/med/med.conf ] ; then
        test -x /usr/sbin/blend-update-menus && blend-update-menus --blend med

	# Initialize debconf if not yet done
	if [ _"$DEBCONF_REDIR" = _"" ]; then
	    . /usr/share/debconf/confmodule
    	    db_version 2.0
	fi

	. /etc/blends/blends.conf
	if [ -s /etc/blends/med/med.conf ] ; then . /etc/blends/med/med.conf ; fi

	case "$1" in
	    abort-deconfigure|abort-remove|abort-upgrade)
		;;
    	    configure|upgrade)
		db_get "shared/med-config/usermenus" || true
		case "$RET" in
    		    "Each package installation")
        		blend-update-usermenus med
            		;;
        	    "End of installation")
            		touch /var/run/med-config.usermenu
            		;;
    		esac
		;;
	    *)
		echo "postinst called with unknown argument \`$1'" >&2
		exit 1
		;;
	esac

	db_stop
    fi
fi



exit 0