From 3c9d3dbbe614e4eecd7c2031a0185671cbf8a1bf Mon Sep 17 00:00:00 2001 From: jhh Date: Thu, 29 Aug 2019 13:34:49 -0500 Subject: entrypoint: redirect std[out|err] to dev/null Issue-ID: POLICY-1371 Signed-off-by: jhh Change-Id: I8b4da1523925bbbbbed398365971c9efb7f6f1aa Signed-off-by: jhh --- .../docker-controlloop/src/main/resources/docker-entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'controlloop/packages/docker-controlloop') 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 0c7fab9f8..684c201ea 100644 --- a/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh +++ b/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh @@ -25,7 +25,7 @@ function configurations { local confName - if ! ls "${POLICY_INSTALL_INIT}"/*.conf 2>&1; then + if ! ls "${POLICY_INSTALL_INIT}"/*.conf > /dev/null 2>&1; then return 0 fi @@ -45,7 +45,7 @@ function features { set -x fi - if ! ls "${POLICY_INSTALL_INIT}"/features*.zip 2>&1; then + if ! ls "${POLICY_INSTALL_INIT}"/features*.zip > /dev/null 2>&1; then return 0 fi @@ -65,7 +65,7 @@ function scripts { local scriptExtSuffix=${1:-"sh"} - if ! ls "${POLICY_INSTALL_INIT}"/*."${scriptExtSuffix}" 2>&1; then + if ! ls "${POLICY_INSTALL_INIT}"/*."${scriptExtSuffix}" > /dev/null 2>&1; then return 0 fi @@ -111,7 +111,7 @@ function properties { set -x fi - if ! ls "${POLICY_INSTALL_INIT}"/*.properties 2>&1; then + if ! ls "${POLICY_INSTALL_INIT}"/*.properties > /dev/null 2>&1; then return 0 fi -- cgit 1.2.3-korg