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-client.postrm | |
parent | 50a7f434b3dbf64265ba8ba28b49ef01e346fb8a (diff) |
Fix purge failure when /etc/ssh has already somehow been removed (LP: #1682817).
Diffstat (limited to 'debian/openssh-client.postrm')
-rw-r--r-- | debian/openssh-client.postrm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/openssh-client.postrm b/debian/openssh-client.postrm index 68c354481..12fb3671d 100644 --- a/debian/openssh-client.postrm +++ b/debian/openssh-client.postrm | |||
@@ -11,7 +11,7 @@ case $1 in | |||
11 | # already been removed at this point. | 11 | # already been removed at this point. |
12 | rm -f /etc/ssh/moduli /etc/ssh/primes | 12 | rm -f /etc/ssh/moduli /etc/ssh/primes |
13 | rm -f /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 | 13 | rm -f /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2 |
14 | rmdir --ignore-fail-on-non-empty /etc/ssh | 14 | [ ! -d /etc/ssh ] || rmdir --ignore-fail-on-non-empty /etc/ssh |
15 | 15 | ||
16 | if which delgroup >/dev/null 2>&1; then | 16 | if which delgroup >/dev/null 2>&1; then |
17 | delgroup --quiet ssh > /dev/null || true | 17 | delgroup --quiet ssh > /dev/null || true |