From f8b5367caf5f5f494b6a1df95ae879b208767d06 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 24 Oct 2004 14:37:26 +0000 Subject: Preserve /etc/ssh/sshd_config ownership/permissions (closes: #276754). --- debian/postinst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debian/postinst') 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() { print "\n$option $value\n" unless $done;' \ "$option" "$value" \ < /etc/ssh/sshd_config > /etc/ssh/sshd_config.dpkg-new + chown --reference /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-new + chmod --reference /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-new mv /etc/ssh/sshd_config.dpkg-new /etc/ssh/sshd_config } -- cgit v1.2.3