This file is indexed.

postinst is in suricata 3.2-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
#!/bin/sh
set -e

update-alternatives --install /usr/bin/suricata suricata /usr/bin/suricata.generic 100


# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
	pycompile -p suricata 
fi

# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/suricata" ]; then
		update-rc.d suricata defaults >/dev/null
		invoke-rc.d suricata start || exit $?
	fi
fi
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/suricata/suricata-debian.yaml /etc/suricata/suricata.yaml 3.1-1 suricata -- "$@"
# End automatically added section


exit 0