This file is indexed.

postinst is in slrn 1.0.3+dfsg-1.

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
#!/bin/sh

set -e

# Yes, this uses debconf.
. /usr/share/debconf/confmodule

if [ "$1" = configure ]; then
	# Always update the files; the config script makes sure ths variables
	# always have a sane and current value in them.

	db_get shared/news/server
	echo "$RET" > /etc/news/server

	db_get shared/mailname
	echo "$RET" > /etc/mailname

        file=/etc/default/slrn
        if test -e $file
        then
            db_get slrn/getdescs
            sed -i -e "/^[^#]*GETDESCS=/s/=.*/='$RET'/" $file
        fi

	db_get slrn/getdescs_now
	if [ "$RET" = true ]; then
		slrn_getdescs || true
	fi
fi

# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section