diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2021-04-27 20:25:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-04-27 20:25:19 +0000 |
commit | ad0f69e402aaff1e19a5330f3949d3f445b949b5 (patch) | |
tree | 5c9a6440a726b4e26e463d50692080fa2a2cc93a /kubernetes/appc | |
parent | f545b5b04321e75824d2eb609c1deab0a75c9509 (diff) | |
parent | 5f4af0525aacf7a13efbbcefeab436b915abc4c8 (diff) |
Merge "[COMMON] Fix condition equality bashisms"
Diffstat (limited to 'kubernetes/appc')
-rwxr-xr-x | kubernetes/appc/resources/config/appc/opt/onap/appc/bin/health_check.sh | 2 | ||||
-rwxr-xr-x | kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/health_check.sh b/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/health_check.sh index 6e35ca894c..f2675b0404 100755 --- a/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/health_check.sh +++ b/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/health_check.sh @@ -18,7 +18,7 @@ waiting_bundles=$(/opt/opendaylight/current/bin/client bundle:list | grep Waiting | wc -l) run_level=$(/opt/opendaylight/current/bin/client system:start-level) - if [ "$run_level" == "Level 100" ] && [ "$waiting_bundles" -lt "1" ] + if [ "$run_level" = "Level 100" ] && [ "$waiting_bundles" -lt "1" ] then echo APPC is healthy. else diff --git a/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh b/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh index c78daee558..2fd6db1360 100755 --- a/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh +++ b/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh @@ -83,7 +83,7 @@ then show databases like 'sdnctl'; END ) - if [ "x${sdnc_db_exists}" == "x" ] + if [ "x${sdnc_db_exists}" = "x" ] then echo "Installing SDNC database" ${SDNC_HOME}/bin/installSdncDb.sh @@ -92,7 +92,7 @@ END show databases like 'appcctl'; END ) - if [ "x${appc_db_exists}" == "x" ] + if [ "x${appc_db_exists}" = "x" ] then echo "Installing APPC database" ${APPC_HOME}/bin/installAppcDb.sh |