summaryrefslogtreecommitdiff
path: root/debian/tor.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tor.postrm')
-rw-r--r--debian/tor.postrm11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/tor.postrm b/debian/tor.postrm
new file mode 100644
index 0000000000..cb3707e27f
--- /dev/null
+++ b/debian/tor.postrm
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+if [ "$1" = "purge" ]; then
+ # logs have to be removed according to policy.
+ rm -rf /var/log/tor/
+ rm -rf /var/lib/tor/
+fi
+
+#DEBHELPER#
+
+exit 0