diff options
Diffstat (limited to 'debian/postrm')
-rw-r--r-- | debian/postrm | 19 |
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 | |||
5 | if [ "$1" = "purge" ] | ||
6 | then | ||
7 | rm -rf /etc/ssh | ||
8 | fi | ||
9 | |||
10 | if [ "$1" = "purge" ] ; then | ||
11 | update-rc.d ssh remove >/dev/null | ||
12 | fi | ||
13 | |||
14 | if [ "$1" = "purge" ] ; then | ||
15 | deluser --quiet sshd > /dev/null || true | ||
16 | delgroup --quiet ssh > /dev/null || true | ||
17 | fi | ||
18 | |||
19 | exit 0 | ||