X-Git-Url: http://www.privoxy.org/gitweb/contact.html?a=blobdiff_plain;f=debian%2Fpostrm;h=7fa593f217c060f0927f30f0ad06d76dda2714cc;hb=f05f83b5327ae76db35a16148508c93cbbe4aa4a;hp=3b761d09d3ff2a0613c28c43c6a5c24ddbc5ccc4;hpb=6aa60a252059f209c5f3fb14502ad1deff7aba61;p=privoxy.git diff --git a/debian/postrm b/debian/postrm index 3b761d09..7fa593f2 100644 --- a/debian/postrm +++ b/debian/postrm @@ -21,7 +21,24 @@ set -e case "$1" in purge) # deluser --quiet privoxy - rm -rf /var/log/privoxy /etc/privoxy + for ext in .ucf-new .ucf-old .ucf-dist ""; do + rm -f "/etc/privoxy/config$ext" + done + if [ -x "$(command -v ucf)" ]; then + ucf --purge /etc/privoxy/config + fi + if [ -x "$(command -v ucfr)" ]; then + ucfr --purge privoxy /etc/privoxy/config + fi + rm -rf /var/log/privoxy + if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge + fi + # Remove https inspection certificates on purge: + if [ -d /var/lib/privoxy/certs ]; then + rm -rf /var/lib/privoxy/certs + fi ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)