Skip to content

Commit

Permalink
Some more bug fixes for the setup script.
Browse files Browse the repository at this point in the history
Refs #6107
  • Loading branch information
gunnarbeutner committed May 12, 2014
1 parent 9864af3 commit f50306f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions pki/icinga2-setup-agent.cmake
Expand Up @@ -133,16 +133,6 @@ object ApiListener "api" {
object Endpoint NodeName { object Endpoint NodeName {
host = 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 { object Zone ZoneName {
Expand Down Expand Up @@ -173,6 +163,8 @@ object Zone "$upstream_name" {
AGENT AGENT
fi fi


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

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


Expand Down

0 comments on commit f50306f

Please sign in to comment.