]> granicus.if.org Git - icinga2/commit
Only run 'api setup' if the feature was not enabled
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 25 Jun 2015 08:21:18 +0000 (10:21 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 25 Jun 2015 08:21:18 +0000 (10:21 +0200)
commit663f09e47576f315bc03005fb597e4539d014e6b
tree4a8d545004caa02a8feabd370eb78a11c9257af8
parent6f43162efa4c17b3339a04909bd45b6bcdddf33a
Only run 'api setup' if the feature was not enabled

It is safe to assume that the user either did run
'node wizard' or 'node setup' in >= 2.3.x before, or
manually enabled the api feature and deployed the
certificates (otherwise Icinga2 wouldn't start either).

In that case we'll skip the api setup to ensure that we
don't override any existing configuration at all.

refs #9471
lib/cli/apisetuputility.cpp