diff options
author | Colin Watson <cjwatson@debian.org> | 2007-12-03 09:19:45 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2007-12-03 09:19:45 +0000 |
commit | a39b28dbafb1a2b52b6795f58ccd7a99ae78974b (patch) | |
tree | 151665ed3f3e4e2fff669348801f16a069203bf7 /debian/openssh-server.postrm | |
parent | bc96117352de9ddf202c1bf5d4d0ca02e9322875 (diff) |
* Check whether deluser exists in postrm (closes: #454085).
Diffstat (limited to 'debian/openssh-server.postrm')
-rw-r--r-- | debian/openssh-server.postrm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/openssh-server.postrm b/debian/openssh-server.postrm index f63ba4d46..32471c718 100644 --- a/debian/openssh-server.postrm +++ b/debian/openssh-server.postrm | |||
@@ -31,7 +31,9 @@ case $1 in | |||
31 | 31 | ||
32 | update-rc.d ssh remove >/dev/null | 32 | update-rc.d ssh remove >/dev/null |
33 | 33 | ||
34 | deluser --quiet sshd > /dev/null || true | 34 | if type deluser >/dev/null 2>&1; then |
35 | deluser --quiet sshd > /dev/null || true | ||
36 | fi | ||
35 | ;; | 37 | ;; |
36 | esac | 38 | esac |
37 | 39 | ||