blob: 4133419552e378f84e212e90aad57e8ddc2f842a (
plain)
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
|
#!/bin/sh
# See deb-postrm(5).
set -e
# Remove log file when dpkg is purged
remove_logfile() {
logdir=$DPKG_ROOT/var/log
rm -f "$logdir"/dpkg.log "$logdir"/dpkg.log.* 2>/dev/null
rm -f "$logdir"/alternatives.log "$logdir"/alternatives.log.* 2>/dev/null
}
case "$1" in
remove)
;;
purge)
remove_logfile
;;
upgrade)
;;
failed-upgrade|disappear|abort-install|abort-upgrade)
;;
*)
echo "$0 called with unknown argument '$1'" 1>&2
exit 1
;;
esac
#DEBHELPER#
exit 0
|