diff options
author | olegb <olegb@amdocs.com> | 2018-06-25 08:53:07 +0300 |
---|---|---|
committer | Oren Kleks <orenkle@amdocs.com> | 2018-06-27 05:59:44 +0000 |
commit | c928dd43210e96b4bbd5054d52a143778e43bf7a (patch) | |
tree | a150fa7fa5ec6b7416dd30387478ff53670af97f /openecomp-be/tools/zusammen-tools/src/main/resources | |
parent | a1987465fcd32f9c70a6675e39acf684fa7d8a89 (diff) |
Utility for version elements validation
Change-Id: I44faca312045dc69966639f65fa9719b0a924027
Issue-ID: SDC-1443
Signed-off-by: Oleg Beltz <olegb@amdocs.com>
Diffstat (limited to 'openecomp-be/tools/zusammen-tools/src/main/resources')
-rw-r--r-- | openecomp-be/tools/zusammen-tools/src/main/resources/itemValidation.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/openecomp-be/tools/zusammen-tools/src/main/resources/itemValidation.sh b/openecomp-be/tools/zusammen-tools/src/main/resources/itemValidation.sh new file mode 100644 index 0000000000..24e4523938 --- /dev/null +++ b/openecomp-be/tools/zusammen-tools/src/main/resources/itemValidation.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +########################################################################################################## +# script name - itemValidation.sh +# run script - ./itemValidation.sh -i ${itemId} +########################################################################################################## + +OSTYPE=`uname -a | grep -iq ubuntu; echo $?` +echo "${OSTYPE}" + +if [ ${OSTYPE} -eq 0 ] +then + CONF_FILE_LOCATION="/opt/app/jetty/base/be/config/catalog-be/configuration.yaml" +else + CONF_FILE_LOCATION="/apps/jetty/base/be/config/catalog-be/configuration.yaml" +fi +echo "Configuration file location: ${CONF_FILE_LOCATION}" +mv lib/openecomp-zusammen-tools*.jar openecomp-zusammen-tools.jar &>/dev/null + +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 +STATUS="${?}" echo "${STATUS}" |