Skip to content

Commit a3da10e

Browse files
committed
bug 10622: use /root/.ssh/id_rsa.cloud instead of ~/.ssh/id_rsa.cloud
status 10622: resolved fixed
1 parent 542ea6f commit a3da10e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/vm/hypervisor/kvm/rundomrpre.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# $Id: rundomrpre.sh 10427 2010-07-09 03:30:48Z edison $ $HeadURL: svn://svn.lab.vmops.com/repos/vmdev/java/scripts/vm/hypervisor/kvm/rundomrpre.sh $
2424

2525
set -x
26-
26+
cert="/root/.ssh/id_rsa.cloud"
2727
mntpath() {
2828
local vmname=$1
2929
if [ ! -d /mnt/$vmname ]
@@ -87,9 +87,9 @@ patch_all() {
8787
local datadisk=$3
8888
local path=$(mntpath $vmname)
8989

90-
if [ -f ~/.ssh/id_rsa.pub.cloud ]
90+
if [ -f $cert ]
9191
then
92-
cp ~/.ssh/id_rsa.pub.cloud $path/authorized_keys
92+
cp $cert $path/authorized_keys
9393
fi
9494
echo $cmdline > $path/cmdline
9595
sed -i "s/,/\ /g" $path/cmdline

0 commit comments

Comments
 (0)