diff options
author | Colin Watson <cjwatson@debian.org> | 2005-01-04 12:37:56 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-01-04 12:37:56 +0000 |
commit | c44fe9a5b9d3db96a7249b04d915f17e4a3a3b04 (patch) | |
tree | 732dcec3c78e0f4a044676da7008c6f29ab33fc1 /debian/openssh-server.postrm | |
parent | 644a27682f0f6d7c252561941efb684ac5f6905c (diff) | |
parent | ebc4a8cca5c11a314af816af146fe70ed4c7598e (diff) |
Merge from branch-V_3_8_1_P1-4-client-server-split:
cvs up -jV_3_8_1_P1-8 -jbranch-V_3_8_1_P1-4-client-server-split
branch-V_3_8_1_P1-4-client-server-split is now closed. For further
development for sarge (Debian version 3.8.1p1-8.sarge.4, CVS tag
V_3_8_1_P1-8_sarge_4), use branch-V_3_8_1_P1-8_sarge_4-sarge.
Diffstat (limited to 'debian/openssh-server.postrm')
-rw-r--r-- | debian/openssh-server.postrm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/openssh-server.postrm b/debian/openssh-server.postrm new file mode 100644 index 000000000..e7a437260 --- /dev/null +++ b/debian/openssh-server.postrm | |||
@@ -0,0 +1,27 @@ | |||
1 | #!/bin/sh -e | ||
2 | |||
3 | #DEBHELPER# | ||
4 | |||
5 | if [ "$1" = "purge" ] | ||
6 | then | ||
7 | # Remove all non-conffiles that ssh might create, so that we can | ||
8 | # smoothly remove /etc/ssh if and only if the user hasn't dropped some | ||
9 | # other files in there. Conffiles have already been removed at this | ||
10 | # point. | ||
11 | rm -f /etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.pub | ||
12 | rm -f /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_rsa_key.pub | ||
13 | rm -f /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_dsa_key.pub | ||
14 | rm -f /etc/ssh/sshd_config | ||
15 | rm -f /etc/ssh/sshd_not_to_be_run | ||
16 | rmdir --ignore-fail-on-non-empty /etc/ssh | ||
17 | fi | ||
18 | |||
19 | if [ "$1" = "purge" ] ; then | ||
20 | update-rc.d ssh remove >/dev/null | ||
21 | fi | ||
22 | |||
23 | if [ "$1" = "purge" ] ; then | ||
24 | deluser --quiet sshd > /dev/null || true | ||
25 | fi | ||
26 | |||
27 | exit 0 | ||