mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
bug #1321: Make use of https when registering images. Changed as proposed by SZTAKI LPDS
(cherry picked from commit a62fd48e00a7ff43665ded28607fb9530b321d38)
This commit is contained in:
parent
68adb07f38
commit
986e7966dd
@ -83,7 +83,7 @@ COPY_COMMAND="$UTILS_PATH/downloader.sh $HASHES $SRC $DST"
|
||||
# ------------ Copy the image to the repository -------------
|
||||
|
||||
case $SRC in
|
||||
http://*)
|
||||
http://*|https://*)
|
||||
log "Downloading $SRC to the image repository"
|
||||
|
||||
exec_and_log "$COPY_COMMAND" "Error downloading $SRC"
|
||||
|
@ -104,7 +104,7 @@ fi
|
||||
COPY_COMMAND="$UTILS_PATH/downloader.sh $HASHES $SRC -"
|
||||
|
||||
case $SRC in
|
||||
http://*)
|
||||
http://*|https://*)
|
||||
log "Downloading $SRC to the image repository"
|
||||
|
||||
DUMP="$COPY_COMMAND"
|
||||
|
@ -91,8 +91,8 @@ EOF
|
||||
function fs_size {
|
||||
|
||||
case $1 in
|
||||
http://*)
|
||||
SIZE=`wget -S --spider $1 2>&1 | grep Content-Length | cut -d':' -f2`
|
||||
http://*|https://*)
|
||||
SIZE=`wget -S --spider --no-check-certificate $1 2>&1 | grep Content-Length | cut -d':' -f2`
|
||||
error=$?
|
||||
;;
|
||||
*)
|
||||
|
@ -93,7 +93,7 @@ fi
|
||||
COPY_COMMAND="$UTILS_PATH/downloader.sh $HASHES $SRC -"
|
||||
|
||||
case $SRC in
|
||||
http://*)
|
||||
http://*|https://*)
|
||||
log "Downloading $SRC to the image repository"
|
||||
|
||||
DUMP="$COPY_COMMAND"
|
||||
|
@ -83,7 +83,7 @@ COPY_COMMAND="$UTILS_PATH/downloader.sh $HASHES $SRC $DST"
|
||||
# ------------ Copy the image to the repository -------------
|
||||
|
||||
case $SRC in
|
||||
http://*)
|
||||
http://*|https://* )
|
||||
log "Downloading $SRC to the image repository"
|
||||
|
||||
exec_and_log "$COPY_COMMAND" "Error downloading $SRC"
|
||||
|
Loading…
x
Reference in New Issue
Block a user