postinst is in logtool 1.2.8-8.
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 | #!/bin/sh -e
. /usr/share/debconf/confmodule
db_get logtool/manual
if [ "$RET" = "false" ]
then
for level in paranoid server workstation violations cracking violations_ignore
do
db_get logtool/use-$level
if [ "$RET" = "true" ]
then
db_get logtool/map-$level-to-file
file=/etc/logtool/"$RET"
[ -e $file ] || mv $file $file.bak
case $level in
paranoid|server|workstation)
ln -sbf /etc/logcheck/ignore.d.$level $file
;;
violations|cracking)
ln -sbf /etc/logcheck/$level.d $file
;;
violations-ignore)
ln -sbf /etc/logcheck/$level.d $file
;;
esac
fi
done
fi
|