diff options
author | Colin Watson <cjwatson@debian.org> | 2004-10-24 14:37:26 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2004-10-24 14:37:26 +0000 |
commit | f8b5367caf5f5f494b6a1df95ae879b208767d06 (patch) | |
tree | b86a152fbdd558d3365e5897031e5b5bbded7c02 /debian/postinst | |
parent | 1894b7723e2d228b9d75691eeeacfd6e5584e86e (diff) |
Preserve /etc/ssh/sshd_config ownership/permissions (closes: #276754).
Diffstat (limited to 'debian/postinst')
-rw-r--r-- | debian/postinst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst index 294177193..02fda6c1e 100644 --- a/debian/postinst +++ b/debian/postinst | |||
@@ -53,6 +53,8 @@ set_config_option() { | |||
53 | print "\n$option $value\n" unless $done;' \ | 53 | print "\n$option $value\n" unless $done;' \ |
54 | "$option" "$value" \ | 54 | "$option" "$value" \ |
55 | < /etc/ssh/sshd_config > /etc/ssh/sshd_config.dpkg-new | 55 | < /etc/ssh/sshd_config > /etc/ssh/sshd_config.dpkg-new |
56 | chown --reference /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-new | ||
57 | chmod --reference /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-new | ||
56 | mv /etc/ssh/sshd_config.dpkg-new /etc/ssh/sshd_config | 58 | mv /etc/ssh/sshd_config.dpkg-new /etc/ssh/sshd_config |
57 | } | 59 | } |
58 | 60 | ||