blob: b92266fc8459d8b2df38332d9224982b5b77e5be [file] [log] [blame]
Michael Lando4d97d5f2017-06-17 22:40:44 +03001#!/bin/bash
2
avigaffa00e935f2017-09-10 08:58:51 +03003OSTYPE=`uname -a | grep -iq ubuntu; echo $?`
4echo "${OSTYPE}"
Michael Lando4d97d5f2017-06-17 22:40:44 +03005
avigaffa00e935f2017-09-10 08:58:51 +03006if [ ${OSTYPE} -eq 1 ]
7then
8 CONF_FILE_LOCATION="/opt/app/jetty/base/be/config/catalog-be/configuration.yaml"
9else
10 CONF_FILE_LOCATION="/apps/jetty/base/be/config/catalog-be/configuration.yaml"
11fi
12echo "Configuration file location: ${CONF_FILE_LOCATION}"
Michael Lando4d97d5f2017-06-17 22:40:44 +030013
14# change exist package and service templates in db
avigaffa00e935f2017-09-10 08:58:51 +030015java -Dlog.home=/apps/jetty/base/be/logs -Dconfiguration.yaml=${CONF_FILE_LOCATION} -jar openecomp-zusammen-tools-1.0-SNAPSHOT.jar org.openecomp.core.tools.main.ZusammenMainTool $1 $2 $3 $4 $5 $6
16STATUS="${?}" echo "${STATUS}"