summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lucas <jflucas@research.att.com>2020-01-30 11:49:39 -0500
committerJack Lucas <jflucas@research.att.com>2020-01-30 11:49:39 -0500
commitae2142b60611311f15beddfdcf778de06179998f (patch)
tree7ec694e18b34b86f1277b546f982eb433dc5127c
parentee9a860cc1b79438f7de2e53a96b28cf12b8bffe (diff)
Remove trailing newline in password files2.0.1
Issue-ID: DCAEGEN2-2039 Signed-off-by: Jack Lucas <jflucas@research.att.com> Change-Id: I5b54b6cbc45b0cec129e5ff1d6894c1d64bd3d49
-rwxr-xr-xtls-init-container/dcae-cert-setup.sh6
-rw-r--r--tls-init-container/pom.xml2
2 files changed, 4 insertions, 4 deletions
diff --git a/tls-init-container/dcae-cert-setup.sh b/tls-init-container/dcae-cert-setup.sh
index 7f3b601..da52569 100755
--- a/tls-init-container/dcae-cert-setup.sh
+++ b/tls-init-container/dcae-cert-setup.sh
@@ -53,10 +53,10 @@ rm -f ${TARGET}/*
/opt/app/aaf_config/bin/agent.sh
# Extract the p12 and JKS passwords
-/opt/app/aaf_config/bin/agent.sh aafcli showpass ${APP_FQI} ${aaf_locator_fqdn} | grep cadi_keystore_password_p12 | cut -d '=' -f 2- > /opt/app/osaaf/p12.pass
-/opt/app/aaf_config/bin/agent.sh aafcli showpass ${APP_FQI} ${aaf_locator_fqdn} | grep cadi_keystore_password_jks= | cut -d '=' -f 2- > /opt/app/osaaf/jks.pass
+/opt/app/aaf_config/bin/agent.sh aafcli showpass ${APP_FQI} ${aaf_locator_fqdn} | grep cadi_keystore_password_p12 | cut -d '=' -f 2- | tr -d '\n' > /opt/app/osaaf/p12.pass
+/opt/app/aaf_config/bin/agent.sh aafcli showpass ${APP_FQI} ${aaf_locator_fqdn} | grep cadi_keystore_password_jks= | cut -d '=' -f 2- | tr -d '\n' > /opt/app/osaaf/jks.pass
# AAF provides a truststore password, but it appears that the truststore is not password-protected
-/opt/app/aaf_config/bin/agent.sh aafcli showpass ${APP_FQI} ${aaf_locator_fqdn} | grep cadi_truststore_password= | cut -d '=' -f 2- > /opt/app/osaaf/trust.pass
+/opt/app/aaf_config/bin/agent.sh aafcli showpass ${APP_FQI} ${aaf_locator_fqdn} | grep cadi_truststore_password= | cut -d '=' -f 2- | tr -d '\n' > /opt/app/osaaf/trust.pass
# Copy the p12 and JKS artifacts to target directory and rename according to DCAE conventions
cp ${ARTIFACTS}/${AAFNS}.p12 ${TARGET}/cert.p12
diff --git a/tls-init-container/pom.xml b/tls-init-container/pom.xml
index 30a5924..a25a0bf 100644
--- a/tls-init-container/pom.xml
+++ b/tls-init-container/pom.xml
@@ -27,7 +27,7 @@ limitations under the License.
<groupId>org.onap.dcaegen2.deployments</groupId>
<artifactId>tls-init-container</artifactId>
<name>dcaegen2-deployments-tls-init-container</name>
- <version>2.0.0</version>
+ <version>2.0.1</version>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>