File: weakforced.postrm

package info (click to toggle)
weakforced 3.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,040 kB
  • sloc: cpp: 20,397; python: 2,002; sh: 700; makefile: 432
file content (34 lines) | stat: -rwxr-xr-x 599 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
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

set -e

WFORCECONF=/etc/wforce/wforce.conf

case "$1" in
    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;

    remove)
    ;;

    purge)
        for ext in .ucf-new .ucf-old .ucf-dist ""; do
            rm -f "${WFORCECONF}$ext"
        done
        if which ucf >/dev/null 2>&1; then
            ucf --purge ${WFORCECONF}
        fi
        if which ucfr >/dev/null 2>&1; then
            ucfr --purge weakforced ${WFORCECONF}
        fi
    ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0