File: postrm

package info (click to toggle)
cacti-spine 1.2.30-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 804 kB
  • sloc: ansic: 7,554; sh: 204; makefile: 33
file content (20 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

case "$1" in
"purge")
        for ext in .ucf-new .ucf-old .ucf-dist ""; do
                rm -f "/etc/cacti/spine.conf$ext"
        done

        if [ -x "`which ucf 2>/dev/null`" ]; then
                ucf --purge "/etc/cacti/spine.conf"
        fi
        if [ -x "`which ucfr 2>/dev/null`" ]; then
                ucfr --purge cacti-spine "/etc/cacti/spine.conf"
        fi
;;
esac

#DEBHELPER#