Fix incorrect file names in icinga2-setup-agent.

Refs #6367
This commit is contained in:
Gunnar Beutner 2014-05-31 11:59:00 +02:00
parent 32e6e6ff04
commit a59687312e

View File

@ -149,19 +149,19 @@ object Zone ZoneName {
ZONES ZONES
if [ "$upstream_connect" = "y" ]; then if [ "$upstream_connect" = "y" ]; then
cat >>$ICINGA2CONFIG/features-available/api.conf <<ZONES cat >>$ICINGA2CONFIG/zones.conf <<ZONES
parent = "$upstream_name" parent = "$upstream_name"
ZONES ZONES
fi fi
cat >>$ICINGA2CONFIG/features-available/api.conf <<ZONES cat >>$ICINGA2CONFIG/zones.conf <<ZONES
endpoints = [ NodeName ] endpoints = [ NodeName ]
} }
ZONES ZONES
if [ "$upstream_connect" = "y" ]; then if [ "$upstream_connect" = "y" ]; then
cat >>$ICINGA2CONFIG/features-available/api.conf <<ZONES cat >>$ICINGA2CONFIG/zones.conf <<ZONES
object Endpoint "$upstream_name" { object Endpoint "$upstream_name" {
host = "$upstream_host" host = "$upstream_host"
port = "$upstream_port" port = "$upstream_port"