Import Debian changes 1.8.5-1
[hcoop/debian/openafs.git] / debian / openafs-client.postrm
diff --git a/debian/openafs-client.postrm b/debian/openafs-client.postrm
new file mode 100755 (executable)
index 0000000..cc9e64f
--- /dev/null
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+set -e
+
+# Remove configuration files and the /afs mount point that are created by the
+# normal postinst action.
+if [ "$1" = 'purge' ] ; then
+    rmdir /afs 2>/dev/null || true
+    for file in cacheinfo CellServDB ThisCell afs.conf.client ; do
+        rm -f "/etc/openafs/$file"
+    done
+    rm -f /var/cache/openafs-client/openafs-client.env
+    rm -f /var/cache/openafs-client/openafs-client.shutdown.env
+fi
+
+#DEBHELPER#