source: trunk/contrib/getimage @ 551

Last change on this file since 551 was 551, checked in by bas, 7 years ago

some minor change

  • Property svn:executable set to *
  • Property svn:keywords set to Id URL
File size: 628 bytes
Line 
1#!/bin/bash
2#
3# Author: Danny Steenman
4#
5# SVN info:
6#       $https://subtrac.sara.nl/users/dannys/svn/trunk/
7#
8SALI_DIR=/data/sali
9SALI_IMAGE_DIR=$SALI_DIR/images
10
11if [ -z "$1" -o -z "$2" ]               #True if either EXPR1 or EXPR2 is true.
12then 
13        echo "usage: `basename $0` <node_name> <image_name>"
14        exit
15fi
16
17if [ -f /etc/sali/exclude/$2.path ];
18then   
19        imagename="$2.path"     
20else 
21        imagename="default.path"
22fi
23
24#sali command is used with the userinput
25echo "sali getimage --host $1 --image $2 --exclude /etc/sali/exclude/${imagename}"
26sali getimage --host $1 --image $2 --exclude /etc/sali/exclude/${imagename}"
27
28echo "sali rsync"
29sali rsync
Note: See TracBrowser for help on using the repository browser.