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:
parent
b0410dfab5
commit
f6f10bd02c
@ -329,6 +329,7 @@ vcenter://*)
|
|||||||
command="$VAR_LOCATION/remotes/datastore/vcenter_downloader.rb '$(esc_sq "$FROM")'"
|
command="$VAR_LOCATION/remotes/datastore/vcenter_downloader.rb '$(esc_sq "$FROM")'"
|
||||||
;;
|
;;
|
||||||
lxd://*)
|
lxd://*)
|
||||||
|
file_type="application/octet-stream"
|
||||||
command="$VAR_LOCATION/remotes/datastore/lxd_downloader.sh \"$FROM\""
|
command="$VAR_LOCATION/remotes/datastore/lxd_downloader.sh \"$FROM\""
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -340,7 +341,7 @@ lxd://*)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
file_type=$(get_type "$command")
|
[ -z "$file_type" ] && file_type=$(get_type "$command")
|
||||||
decompressor=$(get_decompressor "$file_type")
|
decompressor=$(get_decompressor "$file_type")
|
||||||
|
|
||||||
if [ -z "${MAX_SIZE}" ]; then
|
if [ -z "${MAX_SIZE}" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user