wrong ssh key fix
To get sshkey from kdump.conf we should filter out comment. Fix it by change awk pattern to use ^sshkey Acked-by: Baoquan He <bhe@redhat.com>
This commit is contained in:
parent
c53d3d2a10
commit
8fddece4e9
2
mkdumprd
2
mkdumprd
@ -235,7 +235,7 @@ add_mount() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# firstly get right SSH_KEY_LOCATION
|
# firstly get right SSH_KEY_LOCATION
|
||||||
keyfile=$(awk '/sshkey/ {print $2}' $conf_file)
|
keyfile=$(awk '/^sshkey/ {print $2}' $conf_file)
|
||||||
if [ -f "$keyfile" ]; then
|
if [ -f "$keyfile" ]; then
|
||||||
# canonicalize the path
|
# canonicalize the path
|
||||||
SSH_KEY_LOCATION=$(/usr/bin/readlink -m $keyfile)
|
SSH_KEY_LOCATION=$(/usr/bin/readlink -m $keyfile)
|
||||||
|
Loading…
Reference in New Issue
Block a user