From 6350b1e1587249643371cbb5f1f91e7fb1317587 Mon Sep 17 00:00:00 2001 From: dglFromAtt Date: Sat, 13 Oct 2018 18:18:58 +0000 Subject: Optionally set properties from configmap Change-Id: Id0746bc49637321f17a4225795bc652f1827e100 Signed-off-by: dglFromAtt Issue-ID: DMAAP-829 --- misc/dmaapbc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'misc') 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 } -- cgit 1.2.3-korg