Navigation


Changeset 219

Show
Ignore:
Timestamp:
11/12/08 17:39:51 (8 weeks ago)
Author:
jfontan
Message:

tm_mad: Modified nfs scripts to work with new changes

Location:
one/branches/DEVELOPMENT/TransferManager/src/tm_mad/nfs
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • one/branches/DEVELOPMENT/TransferManager/src/tm_mad/nfs/tm_clone.sh

    r159 r219  
    1616log "Creating directory $DST_DIR" 
    1717exec_and_log "mkdir -p $DST_DIR" 
     18exec_and_log "chmod a+w $DST_DIR" 
    1819 
    1920case $SRC in 
  • one/branches/DEVELOPMENT/TransferManager/src/tm_mad/nfs/tm_mv.sh

    r149 r219  
    99DST_PATH=`arg_path $DST` 
    1010 
    11 log "Moving $SRC_PATH" 
    12 exec_and_log "mv $SRC_PATH $DST_PATH" 
     11if [ "$SRC_PATH" == "$DST_PATH" ]; then 
     12    log "Will not move, source and destination are equal" 
     13else 
     14    # Is saving a disk image? 
     15    echo "$DST_PATH" | egrep -e "^$ONE_LOCATION/var/.+/disk\..+$" 
     16    if [ "x$?" == "x0" ]; then 
     17        log "Moving $SRC_PATH" 
     18        exec_and_log "mv $SRC_PATH $DST_PATH" 
     19    else 
     20        log "Will not move, is not saving image" 
     21    fi 
     22fi 
     23