From f6f10bd02cce56e07106b131f282cfc63353b2f9 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 19 Dec 2018 18:20:48 +0100 Subject: [PATCH] development: Fix double download on linuxcontainers marketplace --- src/datastore_mad/remotes/downloader.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/datastore_mad/remotes/downloader.sh b/src/datastore_mad/remotes/downloader.sh index 5a9d1edd65..739ecb3fd7 100755 --- a/src/datastore_mad/remotes/downloader.sh +++ b/src/datastore_mad/remotes/downloader.sh @@ -329,6 +329,7 @@ vcenter://*) command="$VAR_LOCATION/remotes/datastore/vcenter_downloader.rb '$(esc_sq "$FROM")'" ;; lxd://*) + file_type="application/octet-stream" command="$VAR_LOCATION/remotes/datastore/lxd_downloader.sh \"$FROM\"" ;; *) @@ -340,7 +341,7 @@ lxd://*) ;; esac -file_type=$(get_type "$command") +[ -z "$file_type" ] && file_type=$(get_type "$command") decompressor=$(get_decompressor "$file_type") if [ -z "${MAX_SIZE}" ]; then