aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authordglFromAtt <dgl@research.att.com>2018-10-13 18:18:58 +0000
committerdglFromAtt <dgl@research.att.com>2018-10-13 18:19:10 +0000
commit6350b1e1587249643371cbb5f1f91e7fb1317587 (patch)
tree1fbee0df0b12885404d8d50920cc013ae250abbf /misc
parent6a40bca642e9213cd2f90d35fd58f35ce39a34b4 (diff)
Optionally set properties from configmap
Change-Id: Id0746bc49637321f17a4225795bc652f1827e100 Signed-off-by: dglFromAtt <dgl@research.att.com> Issue-ID: DMAAP-829
Diffstat (limited to 'misc')
-rw-r--r--misc/dmaapbc13
1 files changed, 11 insertions, 2 deletions
diff --git a/misc/dmaapbc b/misc/dmaapbc
index cef472e..0dff4d6 100644
--- a/misc/dmaapbc
+++ b/misc/dmaapbc
@@ -74,8 +74,17 @@ config() {
$APP_ROOT/misc/cert-client-init.sh
. misc/havecert.tmpl > etc/havecert
chmod +x etc/havecert
- . misc/dmaapbc.properties.tmpl > etc/dmaapbc.properties
- . misc/PolicyEngineApi.properties.tmpl > config/PolicyEngineApi.properties
+
+ # These files might be better provided in kubernetes configmaps
+ # so if they are already there, don't overwrite.
+ if [ ! -f etc/dmaapbc.properties ]
+ then
+ . misc/dmaapbc.properties.tmpl > etc/dmaapbc.properties
+ fi
+ if [ ! -f config/PolicyEngineApi.properties ]
+ then
+ . misc/PolicyEngineApi.properties.tmpl > config/PolicyEngineApi.properties
+ fi
set +x
}