File: postrm

package info (click to toggle)
dhcpy6d 1.2.3-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 840 kB
  • sloc: python: 4,479; sh: 231; sql: 67; makefile: 15
file content (24 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# Delete dhcpy6d's log files upon package purge.
#

set -e

case "$1" in
    purge)
        rm -f /var/log/dhcpy6d.log* /var/lib/dhcpy6d/volatile.sqlite
        # Taken from ucf's postrm example
        for ext in '' '~' '%' .bak .ucf-new .ucf-old .ucf-dist; do
            rm -f "/etc/default/dhcpy6d$ext"
        done
        if command -v ucf >/dev/null; then
            ucf --purge /etc/default/dhcpy6d
        fi
        if command -v ucfr >/dev/null; then
            ucfr --purge dhcpy6d /etc/default/dhcpy6d
        fi
        ;;
esac

#DEBHELPER#