summaryrefslogtreecommitdiff
path: root/debian/postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postrm')
-rw-r--r--debian/postrm19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 000000000..c76f662df
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,19 @@
1#!/bin/sh -e
2
3#DEBHELPER#
4
5if [ "$1" = "purge" ]
6then
7 rm -rf /etc/ssh
8fi
9
10if [ "$1" = "purge" ] ; then
11 update-rc.d ssh remove >/dev/null
12fi
13
14if [ "$1" = "purge" ] ; then
15 deluser --quiet sshd > /dev/null || true
16 delgroup --quiet ssh > /dev/null || true
17fi
18
19exit 0