olegb | c928dd4 | 2018-06-25 08:53:07 +0300 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | ########################################################################################################## |
| 4 | # script name - itemValidation.sh |
| 5 | # run script - ./itemValidation.sh -i ${itemId} |
| 6 | ########################################################################################################## |
| 7 | |
| 8 | OSTYPE=`uname -a | grep -iq ubuntu; echo $?` |
| 9 | echo "${OSTYPE}" |
| 10 | |
| 11 | if [ ${OSTYPE} -eq 0 ] |
| 12 | then |
| 13 | CONF_FILE_LOCATION="/opt/app/jetty/base/be/config/catalog-be/configuration.yaml" |
| 14 | else |
| 15 | CONF_FILE_LOCATION="/apps/jetty/base/be/config/catalog-be/configuration.yaml" |
| 16 | fi |
| 17 | echo "Configuration file location: ${CONF_FILE_LOCATION}" |
| 18 | mv lib/openecomp-zusammen-tools*.jar openecomp-zusammen-tools.jar &>/dev/null |
| 19 | |
| 20 | java -Dconfig.home=/opt/app/jetty/base/be/config -Dlog.home=/apps/jetty/base/be/logs -Dconfiguration.yaml=${CONF_FILE_LOCATION} -classpath openecomp-zusammen-tools.jar:lib/* org.openecomp.core.tools.itemvalidation.ItemValidation $1 $2 |
| 21 | STATUS="${?}" echo "${STATUS}" |