diff options
author | Colin Watson <cjwatson@debian.org> | 2004-04-20 07:53:33 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2004-04-20 07:53:33 +0000 |
commit | f52ab6479f10e716d61a5a07773b471ecd35dc9f (patch) | |
tree | eb4478766c09214904ff52ae26e9e15779351aeb /debian/postinst | |
parent | 5c3eae80f9a16ca71c76d46ae9e5c5227ae2106f (diff) |
Make sure there's a newline at the end of sshd_config before adding 'UsePAM
yes' (closes: #244829).
Diffstat (limited to 'debian/postinst')
-rw-r--r-- | debian/postinst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst index cab39d9b2..b641769ba 100644 --- a/debian/postinst +++ b/debian/postinst | |||
@@ -68,6 +68,7 @@ create_sshdconfig() { | |||
68 | cp -a /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-old | 68 | cp -a /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-old |
69 | perl -pe 's/^(PAMAuthenticationViaKbdInt|RhostsAuthentication)\b/#$1/i' \ | 69 | perl -pe 's/^(PAMAuthenticationViaKbdInt|RhostsAuthentication)\b/#$1/i' \ |
70 | /etc/ssh/sshd_config > /etc/ssh/sshd_config.dpkg-new | 70 | /etc/ssh/sshd_config > /etc/ssh/sshd_config.dpkg-new |
71 | echo >> /etc/ssh/sshd_config.dpkg-new | ||
71 | echo 'UsePAM yes' >> /etc/ssh/sshd_config.dpkg-new | 72 | echo 'UsePAM yes' >> /etc/ssh/sshd_config.dpkg-new |
72 | mv /etc/ssh/sshd_config.dpkg-new /etc/ssh/sshd_config | 73 | mv /etc/ssh/sshd_config.dpkg-new /etc/ssh/sshd_config |
73 | echo | 74 | echo |