Debian Codegraph @

debian/postrm

raw
1 #! /bin/sh
2
3 set -e
4
5 CONFDEST="/etc/debtree"
6
7 case $1 in
8 purge)
9 for file in skiplist endlist; do
10 # remove configuration files with dpkg backup extensions
11 for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist; do
12 rm -f $CONFDEST/$file$ext
13 done
14
15 # remove the configuration file itself
16 rm -f $CONFDEST/$file
17
18 # clear it out from the ucf database
19 if which ucf >/dev/null; then
20 ucf --purge $CONFDEST/$file
21 fi
22 done
23 ;;
24 esac
25
26 #DEBHELPER#