diff options
author | Taka Cho <takamune.cho@att.com> | 2020-11-30 14:50:59 -0500 |
---|---|---|
committer | Taka Cho <takamune.cho@att.com> | 2020-11-30 14:51:23 -0500 |
commit | 9a6380da83c1acc73812c36961b43bb6289d9f8b (patch) | |
tree | 212618e215f5296c330f9613959f7a86d27b44b4 /packages/policy-distribution-docker | |
parent | 1f8a5d8a5ecaf41eb1cc6266c87375839c49c556 (diff) |
move all bash to ash shell scripts - dist
bash scripts convert to ash
Issue-ID: POLICY-2847
Change-Id: Iee0aacfdf01425cb2b6e6347672ebdd82ec205e1
Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'packages/policy-distribution-docker')
-rw-r--r-- | packages/policy-distribution-docker/src/main/docker/Dockerfile | 2 | ||||
-rw-r--r-- | packages/policy-distribution-docker/src/main/docker/policy-dist.sh | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/policy-distribution-docker/src/main/docker/Dockerfile b/packages/policy-distribution-docker/src/main/docker/Dockerfile index 6b8ff757..e015e29b 100644 --- a/packages/policy-distribution-docker/src/main/docker/Dockerfile +++ b/packages/policy-distribution-docker/src/main/docker/Dockerfile @@ -42,4 +42,4 @@ RUN chown -R policy:policy * && chmod 755 bin/*.sh USER policy WORKDIR $POLICY_HOME/bin -ENTRYPOINT [ "bash", "./policy-dist.sh" ] +ENTRYPOINT [ "./policy-dist.sh" ] diff --git a/packages/policy-distribution-docker/src/main/docker/policy-dist.sh b/packages/policy-distribution-docker/src/main/docker/policy-dist.sh index 73a869bb..5b1536e7 100644 --- a/packages/policy-distribution-docker/src/main/docker/policy-dist.sh +++ b/packages/policy-distribution-docker/src/main/docker/policy-dist.sh @@ -1,8 +1,9 @@ -#!/bin/bash -x +#!/usr/bin/env ash # # ============LICENSE_START======================================================= # Copyright (C) 2018 Ericsson. All rights reserved. # Modifications Copyright (C) 2019-2020 Nordix Foundation. +# Modifications Copyright (C) 2020 AT&T. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,22 +33,21 @@ else CONFIG_FILE=${CONFIG_FILE} fi -if [ -z "$CONFIG_FILE" ] - then +if [ -z "$CONFIG_FILE" ]; then CONFIG_FILE="${POLICY_HOME}/etc/defaultConfig.json" fi -if [[ -f "${POLICY_HOME}"/etc/mounted/policy-truststore ]]; then +if [ -f "${POLICY_HOME}/etc/mounted/policy-truststore" ]; then echo "overriding policy-truststore" cp -f "${POLICY_HOME}"/etc/mounted/policy-truststore "${TRUSTSTORE}" fi -if [[ -f "${POLICY_HOME}"/etc/mounted/policy-keystore ]]; then +if [ -f "${POLICY_HOME}/etc/mounted/policy-keystore" ]; then echo "overriding policy-keystore" cp -f "${POLICY_HOME}"/etc/mounted/policy-keystore "${KEYSTORE}" fi -if [[ -f "${POLICY_HOME}"/etc/mounted/logback.xml ]]; then +if [ -f "${POLICY_HOME}/etc/mounted/logback.xml" ]; then echo "overriding logback.xml" cp -f "${POLICY_HOME}"/etc/mounted/logback.xml "${POLICY_HOME}"/etc/ fi |