diff options
author | Colin Watson <cjwatson@debian.org> | 2010-12-26 18:04:23 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-12-26 18:04:23 +0000 |
commit | 65436a2d34fb6d47306c92dd409c6844a77f121a (patch) | |
tree | 7bf87623a3e94d25d095b6632d2358f5eb893d63 /debian/openssh-server.postinst | |
parent | 3875951bb76a9ec62634ae4026c9cc885d933477 (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.postinst | 3 |
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 | |||
473 | if dpkg --compare-versions "$2" lt 1:4.7p1-1; then | 473 | if dpkg --compare-versions "$2" lt 1:4.7p1-1; then |
474 | rm -f /etc/ssh/primes | 474 | rm -f /etc/ssh/primes |
475 | fi | 475 | fi |
476 | if dpkg --compare-versions "$2" lt 1:5.5p1-6; then | ||
477 | rm -f /var/run/sshd/.placeholder | ||
478 | fi | ||
476 | 479 | ||
477 | 480 | ||
478 | db_stop | 481 | db_stop |