blob: 24e452393899750bc9dc8f8aac62edf4fe166993 [file] [log] [blame]
olegbc928dd42018-06-25 08:53:07 +03001#!/bin/bash
2
3##########################################################################################################
4# script name - itemValidation.sh
5# run script - ./itemValidation.sh -i ${itemId}
6##########################################################################################################
7
8OSTYPE=`uname -a | grep -iq ubuntu; echo $?`
9echo "${OSTYPE}"
10
11if [ ${OSTYPE} -eq 0 ]
12then
13 CONF_FILE_LOCATION="/opt/app/jetty/base/be/config/catalog-be/configuration.yaml"
14else
15 CONF_FILE_LOCATION="/apps/jetty/base/be/config/catalog-be/configuration.yaml"
16fi
17echo "Configuration file location: ${CONF_FILE_LOCATION}"
18mv lib/openecomp-zusammen-tools*.jar openecomp-zusammen-tools.jar &>/dev/null
19
20java -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
21STATUS="${?}" echo "${STATUS}"