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