Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | ######################################################################## |
| 4 | # |
| 5 | # Example: |
| 6 | # ./updateIsVnf.sh ../config/titan.properties Bservice,Myservice |
| 7 | # |
| 8 | ######################################################################## |
| 9 | |
| 10 | CURRENT_DIR=`pwd` |
| 11 | BASEDIR=$(dirname $0) |
| 12 | |
| 13 | if [ ${BASEDIR:0:1} = "/" ] |
| 14 | then |
| 15 | FULL_PATH=$BASEDIR |
| 16 | else |
| 17 | FULL_PATH=$CURRENT_DIR/$BASEDIR |
| 18 | fi |
| 19 | |
| 20 | source ${FULL_PATH}/baseOperation.sh |
| 21 | |
| 22 | mainClass="org.openecomp.sdc.asdctool.main.UpdateIsVnfMenu" |
| 23 | |
| 24 | command="java $JVM_LOG_FILE -cp $JARS $mainClass updateIsVnfTrue $@" |
| 25 | echo $command |
| 26 | |
| 27 | $command |
| 28 | result=$? |
| 29 | |
| 30 | echo "***********************************" |
| 31 | echo "***** $result *********************" |
| 32 | echo "***********************************" |
| 33 | |
| 34 | exit $result |
| 35 | |
| 36 | |