cache.patch

Ruben S. Montero, 08/07/2012 09:43 PM

Download (1.62 KB)

View differences:

scripts_common.sh 2012-07-26 17:09:02.779479351 +0800
1 1
# -------------------------------------------------------------------------- #
2
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org)             #
2
# Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org)             #
3 3
#                                                                            #
4 4
# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
5 5
# not use this file except in compliance with the License. You may obtain    #
......
34 34
SSH=ssh
35 35
SUDO=sudo
36 36
WGET=wget
37
PREWGET=prefetch_wget.sh
37 38
READLINK=readlink
38 39

  
39 40
# Used for log messages
40
-- opennebula-3.2.1-origin/src/tm_mad/ssh/tm_clone.sh	2012-01-27 02:01:43.000000000 +0800
41
++ tm_clone.sh	2012-07-26 13:51:39.042337569 +0800
......
1 1
#!/bin/bash
2 2

  
3 3
# -------------------------------------------------------------------------- #
4
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org)             #
4
# Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org)             #
5 5
#                                                                            #
6 6
# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
7 7
# not use this file except in compliance with the License. You may obtain    #
......
46 46
case $SRC in
47 47
http://*)
48 48
    log "Downloading $SRC"
49
    exec_and_log "$SSH $DST_HOST $WGET -O $DST_PATH $SRC" \
49
    exec_and_log "$SSH $DST_HOST $PREWGET -O $DST_PATH $SRC" \
50 50
        "Error downloading $SRC"
51 51
    ;;
52 52