summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-12-26 18:04:23 +0000
committerColin Watson <cjwatson@debian.org>2010-12-26 18:04:23 +0000
commit65436a2d34fb6d47306c92dd409c6844a77f121a (patch)
tree7bf87623a3e94d25d095b6632d2358f5eb893d63 /debian/openssh-server.postinst
parent3875951bb76a9ec62634ae4026c9cc885d933477 (diff)
Touch /var/run/sshd/.placeholder in the preinst so that /var/run/sshd,
which is intentionally no longer shipped in the openssh-server package due to /var/run often being a temporary directory, is not removed on upgrade (closes: #575582).
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst
index 325af4ef4..4ed956454 100644
--- a/debian/openssh-server.postinst
+++ b/debian/openssh-server.postinst
@@ -473,6 +473,9 @@ commit_mv_conffile /etc/pam.d/ssh /etc/pam.d/sshd
473if dpkg --compare-versions "$2" lt 1:4.7p1-1; then 473if dpkg --compare-versions "$2" lt 1:4.7p1-1; then
474 rm -f /etc/ssh/primes 474 rm -f /etc/ssh/primes
475fi 475fi
476if dpkg --compare-versions "$2" lt 1:5.5p1-6; then
477 rm -f /var/run/sshd/.placeholder
478fi
476 479
477 480
478db_stop 481db_stop