This file is indexed.

postrm is in ntpsec-ntpviz 1.1.0+dfsg1-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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh

set -e

if [ "$1" != "upgrade" ]; then
    rm -rf /var/lib/ntp/ntpviz
    rmdir /var/log/ntpstats 2> /dev/null || true
fi

if [ "$1" = "purge" ]; then
	# This intentionally allows for deinstalled (i.e. removed, but not
	# purged) ntpsec, as it does not remove /var/log/ntpstats until it
	# is purged.  Those files would be owned by the ntp user and group.
	# Also, ntp is allowed here for the same reason, since ntpsec-ntpviz
	# does not require ntpsec and can be installed alongside ntp.
	if ! (LANG=C dpkg -s ntpsec 2> /dev/null ;
	      LANG=C dpkg -s ntp 2> /dev/null) | \
	     grep -qE "^Status: (deinstall|hold|install)"; then
		deluser --system --quiet ntp || true
	fi
fi

# Automatically added by dh_systemd_start/11.1.4ubuntu1
if [ -d /run/systemd/system ]; then
	systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_systemd_enable/11.1.4ubuntu1
if [ "$1" = "remove" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper mask 'ntploggps.timer' 'ntplogtemp.timer' 'ntpviz-daily.timer' 'ntpviz-weekly.timer' >/dev/null || true
	fi
fi

if [ "$1" = "purge" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper purge 'ntploggps.timer' 'ntplogtemp.timer' 'ntpviz-daily.timer' 'ntpviz-weekly.timer' >/dev/null || true
		deb-systemd-helper unmask 'ntploggps.timer' 'ntplogtemp.timer' 'ntpviz-daily.timer' 'ntpviz-weekly.timer' >/dev/null || true
	fi
fi
# End automatically added section
# Automatically added by dh_apache2/UNDECLARED
if [ "$1" = "purge" ] ; then
	if true; then
		if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
			. /usr/share/apache2/apache2-maintscript-helper

			for conf in ntpsec-ntpviz  ; do
				apache2_invoke disconf $conf  || exit 1
			done
		fi
	fi
fi
# End automatically added section