Fix location of ssh key to install in genesis environment mknb

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10513 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-09-13 19:12:37 +00:00
parent e3b1c34d5c
commit 0d82caba3b

View File

@ -95,7 +95,7 @@ sub process_request {
}
mkpath($tempdir."$sshdir");
chmod(0700,$tempdir."$sshdir");
copy("$sshdir/id_rsa.pub","$tempdir$sshdir/authorized_keys");
copy("/root/.ssh/id_rsa.pub","$tempdir$sshdir/authorized_keys");
chmod(0600,"$tempdir$sshdir/authorized_keys");
if (not $invisibletouch and -r "/etc/xcat/hostkeys/ssh_host_key") {
copy("/etc/xcat/hostkeys/ssh_host_key","$tempdir/etc/ssh_host_key");