aboutsummaryrefslogtreecommitdiffstats
path: root/heat/ONAP/cloud-config/aaf_vm_init.sh
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-09-05 12:55:34 -0500
committerInstrumental <jonathan.gathman@att.com>2018-09-05 13:10:53 -0500
commit58689b9fe1ae6c3038a1577eb4a3490750ffb4af (patch)
tree74517dcb9dad0f8624db652530af2099c9bd3747 /heat/ONAP/cloud-config/aaf_vm_init.sh
parent2871669ad9a0db36280fd1bcb7ff9d12066d1369 (diff)
adjust AAF for b64
HEAT Process did not place binary file as expected. Modified process to deal with base64 Issue-ID: AAF-420 Change-Id: If9ef925094e131ff556405c99658989677f5bcdf Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'heat/ONAP/cloud-config/aaf_vm_init.sh')
-rw-r--r--heat/ONAP/cloud-config/aaf_vm_init.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/heat/ONAP/cloud-config/aaf_vm_init.sh b/heat/ONAP/cloud-config/aaf_vm_init.sh
index 883ea30a..3941a30f 100644
--- a/heat/ONAP/cloud-config/aaf_vm_init.sh
+++ b/heat/ONAP/cloud-config/aaf_vm_init.sh
@@ -52,13 +52,14 @@ sed -i "s/HOST_IP=.*/HOST_IP=$HOST_IP/g" /opt/authz/auth/docker/d.props
sed -i "s/LATITUDE=.*/LATITUDE=$CADI_LATITUDE/g" /opt/authz/auth/docker/d.props
sed -i "s/LONGITUDE=.*/LONGITUDE=$CADI_LONGITUDE/g" /opt/authz/auth/docker/d.props
+SIGNER_B64="$CURRENT_DIR/config/sample_ca/aaf.signer.b64"
SIGNER_P12="$CURRENT_DIR/config/sample_ca/aaf.signer.p12"
AAF_P12="$CURRENT_DIR/config/sample_ca/aaf.bootstrap.p12"
P12_PASSWORD="something easy"
if [ ! -e "$SIGNER_P12" ]; then
- mkdir -p "$CURRENT_DIR/sample_ca"
- cp /opt/authz/conf/onap.sample.signer.p12 "$SIGNER_P12"
+ mkdir -p "$CURRENT_DIR/config/sample_ca"
+ base64 -d $SIGNER_B64 > $SIGNER_P12
fi
if [ ! -e "$AAF_P12" ]; then