From f52ab6479f10e716d61a5a07773b471ecd35dc9f Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 20 Apr 2004 07:53:33 +0000 Subject: Make sure there's a newline at the end of sshd_config before adding 'UsePAM yes' (closes: #244829). --- debian/postinst | 1 + 1 file changed, 1 insertion(+) (limited to 'debian/postinst') diff --git a/debian/postinst b/debian/postinst index cab39d9b2..b641769ba 100644 --- a/debian/postinst +++ b/debian/postinst @@ -68,6 +68,7 @@ create_sshdconfig() { cp -a /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-old perl -pe 's/^(PAMAuthenticationViaKbdInt|RhostsAuthentication)\b/#$1/i' \ /etc/ssh/sshd_config > /etc/ssh/sshd_config.dpkg-new + echo >> /etc/ssh/sshd_config.dpkg-new echo 'UsePAM yes' >> /etc/ssh/sshd_config.dpkg-new mv /etc/ssh/sshd_config.dpkg-new /etc/ssh/sshd_config echo -- cgit v1.2.3