summaryrefslogtreecommitdiffstats
path: root/auth/sample
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-10-10 18:51:33 -0500
committerInstrumental <jonathan.gathman@att.com>2018-10-10 18:51:37 -0500
commit5451a509e10530c62c8939f0bbdb294f3e6c7286 (patch)
treea309553fe3d58b5379783d83c4e914fab1b32ec1 /auth/sample
parent5ed77b98dbe9107431d2dfd61d331f78b009503b (diff)
OOM updates
Issue-ID: AAF-539 Change-Id: Ie169661ac36e9ecbc0dc56c7d71191be5e649b7b Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/sample')
-rw-r--r--auth/sample/bin/pod_wait.sh1
-rw-r--r--auth/sample/bin/service.sh7
2 files changed, 7 insertions, 1 deletions
diff --git a/auth/sample/bin/pod_wait.sh b/auth/sample/bin/pod_wait.sh
index 08998db0..14350366 100644
--- a/auth/sample/bin/pod_wait.sh
+++ b/auth/sample/bin/pod_wait.sh
@@ -51,6 +51,7 @@ if [ "sleep" = "$OTHER" ]; then
sleep $1
shift
status "ready"
+ echo "Done"
else
echo "App $APP is waiting to start until $OTHER is ready"
status "waiting for $OTHER"
diff --git a/auth/sample/bin/service.sh b/auth/sample/bin/service.sh
index f261c18e..b6121ead 100644
--- a/auth/sample/bin/service.sh
+++ b/auth/sample/bin/service.sh
@@ -7,6 +7,10 @@ LOCAL=/opt/app/osaaf/local
DATA=/opt/app/osaaf/data
PUBLIC=/opt/app/osaaf/public
CONFIG=/opt/app/aaf_config
+
+# If doesn't exist... still create
+mkdir -p /opt/app/osaaf
+
# Temp use for clarity of code
FILE=
@@ -85,7 +89,8 @@ if [ ! -e $LOCAL/org.osaaf.aaf.props ]; then
echo cadi_longitude=${LONGITUDE} >> ${TMP}
echo cadi_x509_issuers=${CADI_X509_ISSUERS} >> ${TMP}
echo aaf_register_as=${AAF_REGISTER_AS} >> ${TMP}
- echo aaf_locate_url=https://${AAF_REGISTER_AS}:8095 >> ${TMP}
+ LOCATOR_AS=${LOCATOR:=AAF_REGISTER_AS}
+ echo aaf_locate_url=https://${AAF_LOCATOR_AS}:8095 >> ${TMP}
cat $TMP