From 22613d3eda42ca065734d99fff59e4b4250ad660 Mon Sep 17 00:00:00 2001 From: Instrumental Date: Mon, 17 Sep 2018 17:20:43 -0500 Subject: Auto Auth Data 3 Issue-ID: AAF-420 Change-Id: I96558a900fa44e9c957725e2a5526db57c382b6c Signed-off-by: Instrumental --- auth/auth-cass/docker/dinstall.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'auth') 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 -- cgit 1.2.3-korg