Skip to content
Permalink
Browse files

Some more bug fixes for the setup script.

Refs #6107
  • Loading branch information
gunnarbeutner committed May 12, 2014
1 parent 9864af3 commit f50306f3a324c2f12c547215090d0f2c30f76075
Showing with 2 additions and 10 deletions.
  1. +2 −10 pki/icinga2-setup-agent.cmake
@@ -133,16 +133,6 @@ object ApiListener "api" {
object Endpoint NodeName {
host = NodeName
AGENT

if [ "$master" = "n" ]; then
cat >>$ICINGA2CONFIG/features-available/api.conf <<AGENT
upstream_name = "$upstream_name"
AGENT
fi

cat >>$ICINGA2CONFIG/features-available/api.conf <<AGENT
}
object Zone ZoneName {
@@ -173,6 +163,8 @@ object Zone "$upstream_name" {
AGENT
fi

sed -i "s/NodeName = \"localhost\"/NodeName = \"$name\"/" /etc/icinga2/constants.conf

echo "Enabling API feature..."
@CMAKE_INSTALL_FULL_SBINDIR@/icinga2-enable-feature api

0 comments on commit f50306f

Please sign in to comment.
You can’t perform that action at this time.