summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Hernandez <jorge.hernandez-herrero@att.com>2020-11-18 18:08:45 +0000
committerGerrit Code Review <gerrit@onap.org>2020-11-18 18:08:45 +0000
commit03c9f7be0e81f39f71c5ba87a77448a726db06db (patch)
treeb3cd6d8ba7559b9dd23b498bfc0596d615fb37b9
parente8369d6d3088b7b68acb987ebff432ac830a3200 (diff)
parentf6d5fa2f2dd0654c823403304bc5973bb4cc9491 (diff)
Merge "move all bash to ash shell scripts for drools-apps"
-rw-r--r--controlloop/common/feature-controlloop-utils/src/main/feature/install/disable6
-rw-r--r--controlloop/common/feature-controlloop-utils/src/main/feature/install/enable4
-rw-r--r--controlloop/packages/docker-controlloop/src/main/resources/pdpd-cl-entrypoint.sh4
3 files changed, 7 insertions, 7 deletions
diff --git a/controlloop/common/feature-controlloop-utils/src/main/feature/install/disable b/controlloop/common/feature-controlloop-utils/src/main/feature/install/disable
index f5cab0ec8..2cbf8b6e0 100644
--- a/controlloop/common/feature-controlloop-utils/src/main/feature/install/disable
+++ b/controlloop/common/feature-controlloop-utils/src/main/feature/install/disable
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env ash
###
# ============LICENSE_START=======================================================
@@ -23,7 +23,7 @@
for actor in AAI GUARD SO SDNC VFC
do
FILE=${POLICY_HOME}/config/${actor}-http-client.properties
- if [[ -f ${FILE}.ofc ]]; then
+ if [ -f "${FILE}.ofc" ]; then
mv $FILE.ofc $FILE
fi
-done \ No newline at end of file
+done
diff --git a/controlloop/common/feature-controlloop-utils/src/main/feature/install/enable b/controlloop/common/feature-controlloop-utils/src/main/feature/install/enable
index 682f05ec2..4011b7d3d 100644
--- a/controlloop/common/feature-controlloop-utils/src/main/feature/install/enable
+++ b/controlloop/common/feature-controlloop-utils/src/main/feature/install/enable
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env ash
###
# ============LICENSE_START=======================================================
@@ -27,7 +27,7 @@
for actor in AAI SO SDNC VFC GUARD
do
FILE=${POLICY_HOME}/config/${actor}-http-client.properties
- if [[ ! -f ${FILE}.ofc ]]; then
+ if [ ! -f "${FILE}.ofc" ]; then
mv ${FILE} ${FILE}.ofc
fi
done
diff --git a/controlloop/packages/docker-controlloop/src/main/resources/pdpd-cl-entrypoint.sh b/controlloop/packages/docker-controlloop/src/main/resources/pdpd-cl-entrypoint.sh
index 6ec9e1d53..2e4691e93 100644
--- a/controlloop/packages/docker-controlloop/src/main/resources/pdpd-cl-entrypoint.sh
+++ b/controlloop/packages/docker-controlloop/src/main/resources/pdpd-cl-entrypoint.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env ash
# ########################################################################
# Copyright 2019-2020 AT&T Intellectual Property. All rights reserved
@@ -16,7 +16,7 @@
# limitations under the License.
# ########################################################################
-if [[ ${DEBUG} == y ]]; then
+if [ "${DEBUG}" = "y" ]; then
echo "-- $0 $* --"
set -x
fi