openshift/openshift-extras — pull request #302 by Miciah (2014-02-21 15:31:19+00:00)
Title: <install> Write EOL to /etc/ssh/sshd_config

In the configure_sshd_on_node function in openshift.ks/openshift.sh, be sure to write the \n EOL marker when adding the AcceptEnv setting.

After commit 24d469fd2f2aa0bcc0d430f7ee148598fdb29e23, configure_sshd_on_node writes a \n to sshd_config _before_ the line that the function adds, for the contingency that sshd_config already has an incomplete line lacking the EOL marker. However, after that commit, the function wasn't writing the \n _of_ the line that the function adds. This commit makes the function write both \n EOL markers.

This commit fixes bug 1068649.