Skip to content

Commit

Permalink
Partial-Bug: #1760051 - Create SSL certs if any SSL flag is set
Browse files Browse the repository at this point in the history
Today it is creating only for top level SSL enable. Needs to be done for subcategories like: XMPP, Introspect, etc

Change-Id: I5d30b217751f1c5156a6346e6ff71d09b9c54fa8
  • Loading branch information
nitishkrishna committed Apr 10, 2018
1 parent 9721c77 commit 3f12fbf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions containers/node-init/certs-init.sh
Expand Up @@ -2,8 +2,11 @@

source /common.sh

if ! is_enabled "$SSL_ENABLE" ; then
echo "INFO: SSL_ENABLE=$SSL_ENABLE, nothing to do"
if [ ! is_enabled "$SSL_ENABLE" ] \
&& [ ! is_enabled "$XMPP_SSL_ENABLE" ] \
&& [ ! is_enabled "$INTROSPECT_SSL_ENABLE" ] \
&& [ ! is_enabled "$SANDESH_SSL_ENABLE" ] ; then
echo "INFO: No SSL Parameters Enabled, nothing to do"
exit 0
fi

Expand Down

0 comments on commit 3f12fbf

Please sign in to comment.