File: sysstat.postrm

package info (click to toggle)
sysstat 12.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 20,092 kB
  • sloc: ansic: 47,023; sh: 1,314; xml: 1,287; makefile: 766; tcl: 756; python: 277; perl: 257
file content (19 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# vim:ts=4:et
# $Id: sysstat.postrm 1524 2011-06-15 05:30:00Z robert $

PACKAGE="sysstat"
DEFAULT="/etc/default/$PACKAGE"

set -e
# remove logfiles and default file when package is purged
if [ "$1" =  "purge" ] ; then
    rm -rf /var/log/sysstat
    rm -f "$DEFAULT"
    which ucf >/dev/null && ucf --purge "$DEFAULT"
    which ucfr >/dev/null && ucfr --purge "$PACKAGE" "$DEFAULT"
fi

#DEBHELPER#

exit 0