Skip to content

Commit 82e57f8

Browse files
committed
Use /tmp as temporary location for injecting SSH keys into systemvm.iso
When starting the management server with 'sudo' the $HOME will be set to the user calling sudo. This fixes CLOUDSTACK-218
1 parent 21ff7c4 commit 82e57f8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/vm/systemvm/injectkeys.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#set -x
2525

26-
TMP=${HOME}/tmp
26+
TMP=/tmp
2727
MOUNTPATH=${HOME}/systemvm_mnt
2828
TMPDIR=${TMP}/cloud/systemvm
2929

@@ -80,7 +80,6 @@ systemvmpath=$3
8080
command -v mkisofs > /dev/null || (echo "$(basename $0): mkisofs not found, please install or ensure PATH is accurate" ; exit 4)
8181

8282
inject_into_iso systemvm.iso $newpubkey
83-
#inject_into_iso systemvm-premium.iso $newpubkey
8483

8584
[ $? -ne 0 ] && exit 5
8685

0 commit comments

Comments
 (0)