1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

development: Fix double download on linuxcontainers marketplace

This commit is contained in:
Ruben S. Montero 2018-12-19 18:20:48 +01:00
parent b0410dfab5
commit f6f10bd02c

View File

@ -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