From 7394337bf875e7dd7caae65533b7c32196f1542c Mon Sep 17 00:00:00 2001 From: jhh Date: Wed, 4 Sep 2019 07:42:22 -0500 Subject: correction when overriding with external truststore Issue-ID: POLICY-1371 Signed-off-by: jhh Change-Id: Ief22f9d99acbd9c3d7335e59045d45c64296f783 --- .../src/main/feature/config/controlloop.properties.environment | 3 --- .../docker-controlloop/src/main/resources/docker-entrypoint.sh | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/controlloop/common/feature-controlloop-management/src/main/feature/config/controlloop.properties.environment b/controlloop/common/feature-controlloop-management/src/main/feature/config/controlloop.properties.environment index dba0d20bc..84bef12f9 100644 --- a/controlloop/common/feature-controlloop-management/src/main/feature/config/controlloop.properties.environment +++ b/controlloop/common/feature-controlloop-management/src/main/feature/config/controlloop.properties.environment @@ -41,9 +41,6 @@ vfc.password=${env:VFC_PASSWORD} pdpx.host=${env:PDP_HOST} pdpx.username=${env:PDP_USERNAME} pdpx.password=${env:PDP_PASSWORD} -pdpx.environment=${env:PDP_ENVIRONMENT} -pdpx.client.username=${env:PDP_CLIENT_USERNAME} -pdpx.client.password=${env:PDP_CLIENT_PASSWORD} guard.url=https://${env:PDP_HOST}:6969/policy/pdpx/v1/decision guard.jdbc.url=jdbc:mariadb://${env:SQL_HOST}:3306/operationshistory diff --git a/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh b/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh index 684c201ea..8e968be50 100644 --- a/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh +++ b/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh @@ -85,12 +85,12 @@ function security { if [[ -f "${POLICY_INSTALL_INIT}"/policy-keystore ]]; then if ! cmp -s "${POLICY_INSTALL_INIT}"/policy-keystore "${POLICY_HOME}"/etc/ssl/policy-keystore; then - echo "overriding policy-keystore"policy-keystore + echo "overriding policy-keystore" cp -f "${POLICY_INSTALL_INIT}"/policy-keystore "${POLICY_HOME}"/etc/ssl fi fi - if [[ -f ${POLICY_INSTALL_INIT}/policy-keystore ]]; then + if [[ -f ${POLICY_INSTALL_INIT}/policy-truststore ]]; then if ! cmp -s "${POLICY_INSTALL_INIT}"/policy-truststore "${POLICY_HOME}"/etc/ssl/policy-truststore; then echo "overriding policy-truststore" cp -f "${POLICY_INSTALL_INIT}"/policy-truststore "${POLICY_HOME}"/etc/ssl -- cgit 1.2.3-korg