entrypoint: redirect std[out|err] to dev/null 28/94628/2
authorjhh <jorge.hernandez-herrero@att.com>
Thu, 29 Aug 2019 18:34:49 +0000 (13:34 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Thu, 29 Aug 2019 20:11:44 +0000 (15:11 -0500)
Issue-ID: POLICY-1371
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I8b4da1523925bbbbbed398365971c9efb7f6f1aa
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh

index 0c7fab9..684c201 100644 (file)
@@ -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