From 112d8b48a4515773e769e088df2e5a5ca6f85f63 Mon Sep 17 00:00:00 2001 From: Bruno Sakoto Date: Tue, 8 Oct 2019 17:19:05 -0400 Subject: Fix syntax error when starting policy Fix following syntax error in policy entry point: /opt/app/policy/bin/docker-entrypoint.sh: line 30: syntax error near unexpected token `fi' Issue-ID: POLICY-2088 Signed-off-by: Bruno Sakoto Change-Id: I517937f5ece8454d83f6c3cad1f96fba52b62317 --- .../docker-controlloop/src/main/resources/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'controlloop/packages/docker-controlloop/src/main') 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 eeeeeb069..c48cf6422 100644 --- a/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh +++ b/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh @@ -24,14 +24,14 @@ function maven { fi if [[ -f "${POLICY_INSTALL_INIT}"/settings.xml ]]; then - if ! cmp -s "${POLICY_INSTALL_INIT}"/settings.xml "${POLICY_HOME}"/etc/m2/settings.xml then + if ! cmp -s "${POLICY_INSTALL_INIT}"/settings.xml "${POLICY_HOME}"/etc/m2/settings.xml; then echo "overriding settings.xml" cp -f "${POLICY_INSTALL_INIT}"/settings.xml "${POLICY_HOME}"/etc/m2 fi fi if [[ -f "${POLICY_INSTALL_INIT}"/standalone-settings.xml ]]; then - if ! cmp -s "${POLICY_INSTALL_INIT}"/standalone-settings.xml "${POLICY_HOME}"/etc/m2/standalone-settings.xml then + if ! cmp -s "${POLICY_INSTALL_INIT}"/standalone-settings.xml "${POLICY_HOME}"/etc/m2/standalone-settings.xml; then echo "overriding standalone-settings.xml" cp -f "${POLICY_INSTALL_INIT}"/standalone-settings.xml "${POLICY_HOME}"/etc/m2 fi -- cgit 1.2.3-korg