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
This commit is contained in:
Wido den Hollander 2012-09-27 18:58:31 +02:00
parent 21ff7c4e7a
commit 82e57f8f40

View File

@ -23,7 +23,7 @@
#set -x
TMP=${HOME}/tmp
TMP=/tmp
MOUNTPATH=${HOME}/systemvm_mnt
TMPDIR=${TMP}/cloud/systemvm
@ -80,7 +80,6 @@ systemvmpath=$3
command -v mkisofs > /dev/null || (echo "$(basename $0): mkisofs not found, please install or ensure PATH is accurate" ; exit 4)
inject_into_iso systemvm.iso $newpubkey
#inject_into_iso systemvm-premium.iso $newpubkey
[ $? -ne 0 ] && exit 5