breaking change xo-appliance.sh: change image url to compressed image and change import command accordingly
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# Repository: https://github.com/ronivay/XenOrchestraInstallerUpdater #
|
# Repository: https://github.com/ronivay/XenOrchestraInstallerUpdater #
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
IMAGE_URL="https://xo-appliance.yawn.fi/downloads/image.xva"
|
IMAGE_URL="https://xo-appliance.yawn.fi/downloads/image.xva.gz"
|
||||||
|
|
||||||
function OSCheck {
|
function OSCheck {
|
||||||
set -e
|
set -e
|
||||||
@@ -138,10 +138,11 @@ function VMImport {
|
|||||||
echo "Downloading and importing XVA image..."
|
echo "Downloading and importing XVA image..."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
# Import image. We pipe through zcat because xe vm-import should transparently decompress gzipped image, but doesn't seem to understand when stream ends when piped through curl/wget whatnot.
|
||||||
if [[ $sruuid == "default" ]]; then
|
if [[ $sruuid == "default" ]]; then
|
||||||
uuid=$(curl "$IMAGE_URL" | xe vm-import filename=/dev/stdin)
|
uuid=$(curl "$IMAGE_URL" | zcat | xe vm-import filename=/dev/stdin)
|
||||||
else
|
else
|
||||||
uuid=$(curl "$IMAGE_URL" | xe vm-import filename=/dev/stdin sr-uuid="$sruuid")
|
uuid=$(curl "$IMAGE_URL" | zcat | xe vm-import filename=/dev/stdin sr-uuid="$sruuid")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
|
Reference in New Issue
Block a user