]> 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:21:33 +0000 (14:21 +0100)
GlobalKnownHostsFile was not installed, because key was not $key

Thanks Jan Stodola!

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

index 36bfbc89742068511386c8f4d60fb9342ae259f6..d5c8bfac6bde8919f1c95981ab31b817656983f3 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