File: postinst

package info (click to toggle)
logtool 1.2.8-11
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 972 kB
  • sloc: ansic: 1,824; sh: 724; makefile: 69
file content (37 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download | duplicates (4)
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
#!/bin/sh -e

. /usr/share/debconf/confmodule

set -e

for file in blue brightblue brightcyan brightgreen brightmagenta brightred brightwhite brightyellow cyan exclude green include magenta white yellow
do
	dpkg-maintscript-helper mv_conffile /etc/logtool/$file	/etc/logtool/${file}.d/$file 1.2.8-9~ -- "$@"
done

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".d/$level
			case $level in
				paranoid|server|workstation)
                        		ln -s /etc/logcheck/ignore.d.$level $file || true
					;;
				violations|cracking)
					ln -s /etc/logcheck/$level.d $file || true
					;;
				violations-ignore)
					ln -s /etc/logcheck/$level.d $file || true
					;;
			esac
                fi
        done
fi

#DEBHELPER#