3
# post-removal script for AIDE
4
# A whole lot of this is "borrowed" from tripwire's postinst
9
if [ -n "$AIDEDEBUG" ]; then
10
echo "now debugging $0 $@"
14
PKGNAME="aide-config-zg2"
16
# Make sure we should be running...
17
[ "$1" = "purge" ] || exit 0
19
CONFDIR="/etc/aide/aide.conf.zg2.d"
23
if command -v ucfq >/dev/null; then
24
for file in $(ucfq --with-colons "$PKGNAME" | cut --delimiter=: --fields=1); do
25
for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do
30
if command -v $UCF >/dev/null; then
33
if command -v $UCFR >/dev/null; then
34
$UCFR --purge $PKGNAME ${file}