mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-27 14:03:40 +03:00
feature #1112: Disable 'http://' sources in vmware cp datastore method
This commit is contained in:
parent
bb1303c9e6
commit
7a487c7308
@ -49,14 +49,6 @@ DST=`generate_image_path`
|
|||||||
# ------------ Copy the image to the repository -------------
|
# ------------ Copy the image to the repository -------------
|
||||||
|
|
||||||
case $SRC in
|
case $SRC in
|
||||||
http://*)
|
|
||||||
log "Downloading $SRC to the image repository"
|
|
||||||
|
|
||||||
exec_and_log "$WGET -O $DST $SRC" "Error downloading $SRC"
|
|
||||||
|
|
||||||
exec_and_log "chmod 0660 $DST"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
*)
|
||||||
if [ `check_restricted $SRC` -eq 1 ]; then
|
if [ `check_restricted $SRC` -eq 1 ]; then
|
||||||
log_error "Not allowed to copy images from $RESTRICTED_DIRS"
|
log_error "Not allowed to copy images from $RESTRICTED_DIRS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user