]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ssh-client: s/key/$key
authorHarald Hoyer <harald@redhat.com>
Mon, 12 Jan 2015 13:20:42 +0000 (14:20 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 12 Jan 2015 13:22:41 +0000 (14:22 +0100)
GlobalKnownHostsFile was not installed, because key was not $key

Thanks Jan Stodola!

(cherry picked from commit 4ba44e899cbc58e7cee0ff66c8ac4a96f502b972)

modules.d/95ssh-client/module-setup.sh

index f60e9631c33b3db10f31ee90d7927521dd49fa4d..c7d8ee24b6311eeda3f2fec2104b2ff9abe7098f 100755 (executable)
@@ -45,7 +45,7 @@ inst_sshenv()
         inst_simple /etc/ssh/ssh_config
         sed -i -e 's/\(^[[:space:]]*\)ProxyCommand/\1# ProxyCommand/' ${initdir}/etc/ssh/ssh_config
         while read key val; do
-            [[ key != "GlobalKnownHostsFile" ]] && continue
+            [[ $key != "GlobalKnownHostsFile" ]] && continue
             inst_simple "$val"
             break
         done < /etc/ssh/ssh_config