mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
parent
be213ab7c5
commit
6ebebb22d6
@ -87,49 +87,53 @@ if [ -n "$1" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while true; do
|
upstream_connect=n
|
||||||
echo -n "Do you want this agent instance to connect to the upstream instance? [y] "
|
|
||||||
if ! read upstream_connect; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$upstream_connect" = "y" -o "$upstream_connect" = "n" -o -z "$upstream_connect" ]; then
|
if [ "$master" = "n" ]; then
|
||||||
break
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Please enter 'y' or 'n'."
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ -z "$upstream_connect" ]; then
|
|
||||||
upstream_connect=y
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$upstream_connect" = "y" ]; then
|
|
||||||
while true; do
|
while true; do
|
||||||
echo -n "Upstream IP address/hostname: "
|
echo -n "Do you want this agent instance to connect to the upstream instance? [y] "
|
||||||
if ! read upstream_host; then
|
if ! read upstream_connect; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$upstream_host" ]; then
|
if [ "$upstream_connect" = "y" -o "$upstream_connect" = "n" -o -z "$upstream_connect" ]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Please enter the upstream instance's hostname."
|
echo "Please enter 'y' or 'n'."
|
||||||
done
|
done
|
||||||
|
|
||||||
while true; do
|
if [ -z "$upstream_connect" ]; then
|
||||||
echo -n "Upstream port: "
|
upstream_connect=y
|
||||||
if ! read upstream_port; then
|
fi
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$upstream_port" ]; then
|
if [ "$upstream_connect" = "y" ]; then
|
||||||
break
|
while true; do
|
||||||
fi
|
echo -n "Upstream IP address/hostname: "
|
||||||
|
if ! read upstream_host; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Please enter the upstream instance's port."
|
if [ -n "$upstream_host" ]; then
|
||||||
done
|
break
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Please enter the upstream instance's hostname."
|
||||||
|
done
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
echo -n "Upstream port: "
|
||||||
|
if ! read upstream_port; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$upstream_port" ]; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Please enter the upstream instance's port."
|
||||||
|
done
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing the certificate bundle..."
|
echo "Installing the certificate bundle..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user