Don't ask for upstream host/port for master instances.

Refs #6002
This commit is contained in:
Gunnar Beutner 2014-04-13 13:48:51 +02:00
parent be213ab7c5
commit 6ebebb22d6

View File

@ -87,6 +87,9 @@ if [ -n "$1" ]; then
fi fi
fi fi
upstream_connect=n
if [ "$master" = "n" ]; then
while true; do while true; do
echo -n "Do you want this agent instance to connect to the upstream instance? [y] " echo -n "Do you want this agent instance to connect to the upstream instance? [y] "
if ! read upstream_connect; then if ! read upstream_connect; then
@ -131,6 +134,7 @@ if [ -n "$1" ]; then
echo "Please enter the upstream instance's port." echo "Please enter the upstream instance's port."
done done
fi fi
fi
echo "Installing the certificate bundle..." echo "Installing the certificate bundle..."
base64 -d < $1 | tar -C $ICINGA2CONFIG/pki/agent/ -zx || exit 1 base64 -d < $1 | tar -C $ICINGA2CONFIG/pki/agent/ -zx || exit 1