Michael Lando | 4d97d5f | 2017-06-17 22:40:44 +0300 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
avigaffa | 00e935f | 2017-09-10 08:58:51 +0300 | [diff] [blame] | 3 | OSTYPE=`uname -a | grep -iq ubuntu; echo $?` |
| 4 | echo "${OSTYPE}" |
Michael Lando | 4d97d5f | 2017-06-17 22:40:44 +0300 | [diff] [blame] | 5 | |
avigaffa | 00e935f | 2017-09-10 08:58:51 +0300 | [diff] [blame] | 6 | if [ ${OSTYPE} -eq 1 ] |
| 7 | then |
| 8 | CONF_FILE_LOCATION="/opt/app/jetty/base/be/config/catalog-be/configuration.yaml" |
| 9 | else |
| 10 | CONF_FILE_LOCATION="/apps/jetty/base/be/config/catalog-be/configuration.yaml" |
| 11 | fi |
| 12 | echo "Configuration file location: ${CONF_FILE_LOCATION}" |
Michael Lando | 4d97d5f | 2017-06-17 22:40:44 +0300 | [diff] [blame] | 13 | |
| 14 | # change exist package and service templates in db |
avigaffa | 00e935f | 2017-09-10 08:58:51 +0300 | [diff] [blame] | 15 | java -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 |
| 16 | STATUS="${?}" echo "${STATUS}" |