Changeset 559


Ignore:
Timestamp:
03/14/13 09:31:13 (7 years ago)
Author:
bas
Message:

added example of exclude files
fixed an error in getimage, closes #66

Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r534 r559  
    111.6.X
    22  * Trunk is broken and does not work
     3
     4  * contrib/getimage fixed, did not work
     5    Reported by: Walter de Jong
    36
    471.5.4
  • trunk/contrib/getimage

    r551 r559  
    99SALI_IMAGE_DIR=$SALI_DIR/images
    1010
    11 if [ -z "$1" -o -z "$2" ]               #True if either EXPR1 or EXPR2 is true.
     11if [ $# -lt 2 ]
    1212then
    1313        echo "usage: `basename $0` <node_name> <image_name>"
    14         exit
     14        exit 1
    1515fi
    1616
     
    2020else
    2121        imagename="default.path"
     22    if [ ! -f /etc/sali/exclude/${imagename} ]
     23    then
     24        echo "Exclude file:/etc/sali/exclude/${imagename} does not exists"
     25        exit 1
     26    fi
    2227fi
    2328
    2429#sali command is used with the userinput
    2530echo "sali getimage --host $1 --image $2 --exclude /etc/sali/exclude/${imagename}"
    26 sali getimage --host $1 --image $2 --exclude /etc/sali/exclude/${imagename}"
     31sali getimage --host $1 --image $2 --exclude /etc/sali/exclude/${imagename}
    2732
    2833echo "sali rsync"
Note: See TracChangeset for help on using the changeset viewer.