We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 542ea6f commit a3da10eCopy full SHA for a3da10e
1 file changed
scripts/vm/hypervisor/kvm/rundomrpre.sh
@@ -23,7 +23,7 @@
23
# $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 $
24
25
set -x
26
-
+cert="/root/.ssh/id_rsa.cloud"
27
mntpath() {
28
local vmname=$1
29
if [ ! -d /mnt/$vmname ]
@@ -87,9 +87,9 @@ patch_all() {
87
local datadisk=$3
88
local path=$(mntpath $vmname)
89
90
- if [ -f ~/.ssh/id_rsa.pub.cloud ]
+ if [ -f $cert ]
91
then
92
- cp ~/.ssh/id_rsa.pub.cloud $path/authorized_keys
+ cp $cert $path/authorized_keys
93
fi
94
echo $cmdline > $path/cmdline
95
sed -i "s/,/\ /g" $path/cmdline
0 commit comments