summaryrefslogtreecommitdiff
path: root/debian/mdadm.postrm
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2014-10-06 11:30:39 +0400
committerMichael Tokarev <mjt@tls.msk.ru>2014-10-06 11:30:39 +0400
commit225a9210d40c6780b50996d53bff7f836834b99f (patch)
treeef7d69209d6e60ab7aa1e66beb62fb324b276ce3 /debian/mdadm.postrm
parent8bcb9e6f769e950a8ab4be343499d33af1eec7d0 (diff)
remove /var/lib/mdadm in postinst and config files in purge (#764036)
Diffstat (limited to 'debian/mdadm.postrm')
-rw-r--r--debian/mdadm.postrm4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/mdadm.postrm b/debian/mdadm.postrm
index 11de7c7e..668100a7 100644
--- a/debian/mdadm.postrm
+++ b/debian/mdadm.postrm
@@ -14,6 +14,10 @@ case "${1:-}" in
fi
;;
+ purge)
+ rm -f /etc/default/mdadm /etc/mdadm.conf /etc/mdadm/mdadm.conf
+ ;;
+
esac
[ -d /run/systemd/system ] && systemctl --system daemon-reload >/dev/null || :