File: logcheck-database.config

package info (click to toggle)
logcheck 1.2.54
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,372 kB
  • ctags: 54
  • sloc: sh: 872; python: 158; perl: 138; makefile: 136
file content (21 lines) | stat: -rw-r--r-- 373 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

action=$1
version=$2

# debconf
. /usr/share/debconf/confmodule
db_version 2.0


# Only show messages about changes on an upgrade
if [ "$action" = "configure" ] && [ -n "$version" ]; then
    if dpkg --compare-versions "$version" lt "1.2.6"; then
        db_input medium logcheck-database/conffile-cleanup || true
        db_go || true
    fi
fi

exit 0