summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postrm
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2013-05-22 01:45:40 +0100
committerColin Watson <cjwatson@debian.org>2013-05-22 01:45:40 +0100
commit6e950945da7a2acbb48fa4138208018f09d66991 (patch)
tree1e99c1fb54755277a8c441cf503b71bb2c5be748 /debian/openssh-server.postrm
parentafd3292952a9f0bb107046785ddcfad446d69b89 (diff)
Switch to new unified layout for Upstart jobs as documented in
https://wiki.ubuntu.com/UpstartCompatibleInitScripts: the init script checks for a running Upstart, and we now let dh_installinit handle most of the heavy lifting in maintainer scripts. Ubuntu users should be essentially unaffected except that sshd may no longer start automatically in chroots if the running Upstart predates 0.9.0; but the main goal is simply not to break when openssh-server is installed in a chroot.
Diffstat (limited to 'debian/openssh-server.postrm')
-rw-r--r--debian/openssh-server.postrm2
1 files changed, 0 insertions, 2 deletions
diff --git a/debian/openssh-server.postrm b/debian/openssh-server.postrm
index 9bb9f1839..fdf0802c9 100644
--- a/debian/openssh-server.postrm
+++ b/debian/openssh-server.postrm
@@ -16,8 +16,6 @@ case $1 in
16 rm -f /etc/ssh/sshd_not_to_be_run 16 rm -f /etc/ssh/sshd_not_to_be_run
17 rmdir --ignore-fail-on-non-empty /etc/ssh 17 rmdir --ignore-fail-on-non-empty /etc/ssh
18 18
19 update-rc.d ssh remove >/dev/null
20
21 if which deluser >/dev/null 2>&1; then 19 if which deluser >/dev/null 2>&1; then
22 deluser --quiet sshd > /dev/null || true 20 deluser --quiet sshd > /dev/null || true
23 fi 21 fi