summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2014-04-10 18:24:48 +1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-10 17:35:15 +0100
commitd1c17c57dbd8759469bbd490b64afd669c3a8478 (patch)
treeed00ce8f3bb65b45ea9177bad2738d1963d7df29 /meta
parentb24f5e8252a2b3f176f03e19fef1d2cda28ef77c (diff)
downloadpoky-d1c17c57dbd8759469bbd490b64afd669c3a8478.tar.gz
openssh: fix sshd_config_readonly creation
The readonly sshd config sshd_config_readonly needs to be created from the installed sshd_config as make install will adjust the paths in the config file. This fixes the path for sftp-server being correct in sshd_config but incorrect in sshd_config_readonly. (From OE-Core rev: 400b4bce34ffb76e500e2195104cc200218aa4c3) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/openssh/openssh_6.5p1.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh_6.5p1.bb b/meta/recipes-connectivity/openssh/openssh_6.5p1.bb
index 3496b4d878..2c4da70988 100644
--- a/meta/recipes-connectivity/openssh/openssh_6.5p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_6.5p1.bb
@@ -99,7 +99,7 @@ do_install_append () {
99 99
100 # Create config files for read-only rootfs 100 # Create config files for read-only rootfs
101 install -d ${D}${sysconfdir}/ssh 101 install -d ${D}${sysconfdir}/ssh
102 install -m 644 ${WORKDIR}/sshd_config ${D}${sysconfdir}/ssh/sshd_config_readonly 102 install -m 644 ${D}${sysconfdir}/ssh/sshd_config ${D}${sysconfdir}/ssh/sshd_config_readonly
103 sed -i '/HostKey/d' ${D}${sysconfdir}/ssh/sshd_config_readonly 103 sed -i '/HostKey/d' ${D}${sysconfdir}/ssh/sshd_config_readonly
104 echo "HostKey /var/run/ssh/ssh_host_rsa_key" >> ${D}${sysconfdir}/ssh/sshd_config_readonly 104 echo "HostKey /var/run/ssh/ssh_host_rsa_key" >> ${D}${sysconfdir}/ssh/sshd_config_readonly
105 echo "HostKey /var/run/ssh/ssh_host_dsa_key" >> ${D}${sysconfdir}/ssh/sshd_config_readonly 105 echo "HostKey /var/run/ssh/ssh_host_dsa_key" >> ${D}${sysconfdir}/ssh/sshd_config_readonly