From 50954ff5609fe6b978c7a451fb58c8cf10ed7582 Mon Sep 17 00:00:00 2001 From: Christoph Niemann Date: Mon, 12 Jan 2026 20:39:20 +0100 Subject: [PATCH] Update influxdb-install.sh (#10753) fix if/elif/else --- install/influxdb-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/influxdb-install.sh b/install/influxdb-install.sh index 2d2b18a1d..597483885 100644 --- a/install/influxdb-install.sh +++ b/install/influxdb-install.sh @@ -24,7 +24,7 @@ msg_ok "Set up InfluxDB Repository" read -r -p "${TAB3}Which version of InfluxDB to install? (1, 2 or 3) " prompt if [[ $prompt == "3" ]]; then INFLUX="3" -if [[ $prompt == "2" ]]; then +elif [[ $prompt == "2" ]]; then INFLUX="2" else INFLUX="1" @@ -34,7 +34,7 @@ msg_info "Installing InfluxDB v${INFLUX}" if [[ $INFLUX == "3" ]]; then $STD apt install -y influxdb3-core systemctl enable -q --now influxdb3-core -if [[ $INFLUX == "2" ]]; then +elif [[ $INFLUX == "2" ]]; then $STD apt install -y influxdb2 systemctl enable -q --now influxdb else