From 9299ca4736902df19fa6d65847374bdd30405a88 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 2 Oct 2022 07:45:27 -0400 Subject: [PATCH] Update influxdb-install.sh optional install Telegraf --- setup/influxdb-install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup/influxdb-install.sh b/setup/influxdb-install.sh index 0dc32e13..3faa99b9 100644 --- a/setup/influxdb-install.sh +++ b/setup/influxdb-install.sh @@ -86,9 +86,19 @@ apt-get update &>/dev/null apt-get install -y influxdb &>/dev/null msg_ok "Installed InfluxDB" +read -r -p "Would you like to add Telegraf? " prompt +if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]] +then +TELEGRAF="Y" +else +TELEGRAF="N" +fi + +if [[ $TELEGRAF == "Y" ]]; then msg_info "Installing Telegraf" apt-get install -y telegraf &>/dev/null msg_ok "Installed Telegraf" +fi PASS=$(grep -w "root" /etc/shadow | cut -b6); if [[ $PASS != $ ]]; then