summaryrefslogtreecommitdiffstats
path: root/auth/sample/bin/client.sh
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-10-24 07:01:09 -0500
committerInstrumental <jonathan.gathman@att.com>2018-10-24 07:01:17 -0500
commit284ad0ad02fc18f8603f777b8cc38ba1d73e4b83 (patch)
tree5549e3cfc63c76949e455e46e68383c38a01c980 /auth/sample/bin/client.sh
parent9fe1153c6bad63922e026d1db86e51b95a92c6cc (diff)
Config Container starts
Issue-ID: AAF-583 Change-Id: Ifded5870e77d58f751dbf8a518c78f6935db5d69 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/sample/bin/client.sh')
-rwxr-xr-xauth/sample/bin/client.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/auth/sample/bin/client.sh b/auth/sample/bin/client.sh
index 363e2b43..e9422880 100755
--- a/auth/sample/bin/client.sh
+++ b/auth/sample/bin/client.sh
@@ -66,6 +66,8 @@ if [ ! -e "$DOT_AAF/keyfile" ]; then
base64 -d $CONFIG/cert/truststoreONAPall.jks.b64 > $DOT_AAF/truststoreONAPall.jks
echo "cadi_truststore=$DOT_AAF/truststoreONAPall.jks" >> ${SSO}
echo cadi_truststore_password=enc:$(sso_encrypt changeit) >> ${SSO}
+ echo "Caller Properties Initialized"
+ INITIALIZED="true"
fi
# Only initialize once, automatically...
@@ -92,6 +94,8 @@ if [ ! -e $LOCAL/${NS}.props ]; then
echo "#### Validate Configuration and Certificate with live call"
$JAVA_AGENT_SELF validate
+ echo "Obtained Certificates"
+ INITIALIZED="true"
else
echo "#### Certificate Authorization Artifact must be valid to continue"
fi
@@ -101,7 +105,11 @@ fi
# Now run a command
CMD=$2
if [ -z "$CMD" ]; then
- $JAVA_AGENT
+ if [ -n "$INITIALIZED" ]; then
+ echo "Initialization complete"
+ else
+ $JAVA_AGENT
+ fi
else
shift
shift