summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass/docker/dinstall.sh
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-09-17 17:20:43 -0500
committerInstrumental <jonathan.gathman@att.com>2018-09-17 17:20:49 -0500
commit22613d3eda42ca065734d99fff59e4b4250ad660 (patch)
treea8970de0235b050f283ed71a5631c9f489349ed4 /auth/auth-cass/docker/dinstall.sh
parent0054191da97b616c37d0504694ef96cf5fc168b0 (diff)
Auto Auth Data 3
Issue-ID: AAF-420 Change-Id: I96558a900fa44e9c957725e2a5526db57c382b6c Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-cass/docker/dinstall.sh')
-rw-r--r--auth/auth-cass/docker/dinstall.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/auth/auth-cass/docker/dinstall.sh b/auth/auth-cass/docker/dinstall.sh
index eeb9a2ef..ef254616 100644
--- a/auth/auth-cass/docker/dinstall.sh
+++ b/auth/auth-cass/docker/dinstall.sh
@@ -75,7 +75,16 @@ if [ "`$DOCKER ps -a | grep aaf_cass`" == "" ]; then
else
DOMAIN="$ID.onap.org";
fi
- echo "$ID@$DOMAIN|2|${DATE}|0xd993c5617486296f1b99d04de31633332b8ba1a550038e23860f9dbf0b2fcf95|Initial ID|$DOMAIN|53344|" >> $CRED
+ unset FIRST
+ for D in $(echo ${DOMAIN//\(.*\)\./\1 /}); do
+ if [ -z "$FIRST" ]; then
+ NS="$D"
+ FIRST="N"
+ else
+ NS="$D.$NS"
+ fi
+ done
+ echo "$ID@$DOMAIN|2|${DATE}|0xd993c5617486296f1b99d04de31633332b8ba1a550038e23860f9dbf0b2fcf95|Initial ID|$NS|53344|" >> $CRED
done
for ID in $(grep '|e|' $ID_FILE | sed -e "s/|.*//"); do