diff options
author | Colin Watson <cjwatson@debian.org> | 2017-04-22 03:09:38 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2017-04-22 03:09:38 +0100 |
commit | ad89e83f850573fe8bf620e4572c1b0f687614a2 (patch) | |
tree | 806ed8ef17faebe1a7342382198d1731f826083d /debian/openssh-server.postrm | |
parent | 50a7f434b3dbf64265ba8ba28b49ef01e346fb8a (diff) |
Fix purge failure when /etc/ssh has already somehow been removed (LP: #1682817).
Diffstat (limited to 'debian/openssh-server.postrm')
-rw-r--r-- | debian/openssh-server.postrm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/openssh-server.postrm b/debian/openssh-server.postrm index ff16e5619..4a716f563 100644 --- a/debian/openssh-server.postrm +++ b/debian/openssh-server.postrm | |||
@@ -24,7 +24,7 @@ case $1 in | |||
24 | ucfr --purge openssh-server /etc/ssh/sshd_config | 24 | ucfr --purge openssh-server /etc/ssh/sshd_config |
25 | fi | 25 | fi |
26 | rm -f /etc/ssh/sshd_not_to_be_run | 26 | rm -f /etc/ssh/sshd_not_to_be_run |
27 | rmdir --ignore-fail-on-non-empty /etc/ssh | 27 | [ ! -d /etc/ssh ] || rmdir --ignore-fail-on-non-empty /etc/ssh |
28 | 28 | ||
29 | if which deluser >/dev/null 2>&1; then | 29 | if which deluser >/dev/null 2>&1; then |
30 | deluser --quiet sshd > /dev/null || true | 30 | deluser --quiet sshd > /dev/null || true |