summaryrefslogtreecommitdiffstats
path: root/auth/sample/bin
diff options
context:
space:
mode:
Diffstat (limited to 'auth/sample/bin')
-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