diff options
Diffstat (limited to 'testsuites/stability/src/main/resources/papsetup')
-rw-r--r-- | testsuites/stability/src/main/resources/papsetup/setup_pap.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/stability/src/main/resources/papsetup/setup_pap.sh b/testsuites/stability/src/main/resources/papsetup/setup_pap.sh index dc5e69e7..235728aa 100644 --- a/testsuites/stability/src/main/resources/papsetup/setup_pap.sh +++ b/testsuites/stability/src/main/resources/papsetup/setup_pap.sh @@ -1,6 +1,6 @@ #!/bin/bash # ============LICENSE_START======================================================= -# Copyright (c) 2019 Nordix Foundation. +# Copyright (c) 2019 - 2020 Nordix Foundation. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,9 +21,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo ${DIR} -if ["$#" -lt 2]; then - echo "PAP and MariaDB IPs should be passed as two parameters. PAP IP goes first." - exit 1 +if [ "$#" -lt 2 ]; then + echo "PAP and MariaDB IPs should be passed as two parameters. PAP IP goes first." + exit 1 else PAP=$1 echo "PAP IP: ${PAP}" @@ -31,4 +31,4 @@ else echo "MariaDB IP: ${MARIADB}" fi -docker run -p 9090:9090 -p 6969:6969 -e "PAP_HOST=${PAP}" -v ${DIR}/config/pap/bin/policy-pap.sh:/opt/app/policy/pap/bin/policy-pap.sh -v ${DIR}/config/pap/etc/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json --add-host mariadb:${MARIADB} --name policy-pap -d --rm nexus3.onap.org:10001/onap/policy-pap:2.0.0-SNAPSHOT-latest +docker run -p 9090:9090 -p 6969:6969 -e "PAP_HOST=${PAP}" -v ${DIR}/config/pap/bin/policy-pap.sh:/opt/app/policy/pap/bin/policy-pap.sh -v ${DIR}/config/pap/etc/defaultConfig.json:/opt/app/policy/pap/etc/defaultConfig.json --add-host mariadb:${MARIADB} --name policy-pap -d --rm nexus3.onap.org:10001/onap/policy-pap:2.2-SNAPSHOT-latest |