mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
21ff7c4e7a
commit
82e57f8f40
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#set -x
|
#set -x
|
||||||
|
|
||||||
TMP=${HOME}/tmp
|
TMP=/tmp
|
||||||
MOUNTPATH=${HOME}/systemvm_mnt
|
MOUNTPATH=${HOME}/systemvm_mnt
|
||||||
TMPDIR=${TMP}/cloud/systemvm
|
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)
|
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.iso $newpubkey
|
||||||
#inject_into_iso systemvm-premium.iso $newpubkey
|
|
||||||
|
|
||||||
[ $? -ne 0 ] && exit 5
|
[ $? -ne 0 ] && exit 5
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user