summaryrefslogtreecommitdiff
path: root/debian/openssh-client.postrm
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2017-04-22 03:09:38 +0100
committerColin Watson <cjwatson@debian.org>2017-04-22 03:09:38 +0100
commitad89e83f850573fe8bf620e4572c1b0f687614a2 (patch)
tree806ed8ef17faebe1a7342382198d1731f826083d /debian/openssh-client.postrm
parent50a7f434b3dbf64265ba8ba28b49ef01e346fb8a (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.postrm2
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