Update the upstream_name attribute in the setup script.

Refs #4865
This commit is contained in:
Gunnar Beutner 2014-04-12 12:56:35 +02:00
parent 33f64c28ab
commit cca79a3849
1 changed files with 13 additions and 0 deletions

View File

@ -14,6 +14,17 @@ if [ -n "$1" ]; then
exit 1
fi
while true; do
echo -n "Upstream Icinga instance name: "
if ! read UPSTREAM; then
exit 1
fi
if [ -n "$UPSTREAM" ]; then
break
fi
done
echo "Installing the certificate bundle..."
tar -C $ICINGA2CONFIG/pki/agent/ -xf "$1"
@ -30,6 +41,8 @@ object AgentListener "agent" {
key_path = SysconfDir + "/icinga2/pki/agent/agent.key"
ca_path = SysconfDir + "/icinga2/pki/agent/ca.crt"
upstream_name = "$UPSTREAM"
bind_port = 7000
}
AGENT