diff --git a/ct/influxdb.sh b/ct/influxdb.sh index 2fdf70c6f..a4421e019 100644 --- a/ct/influxdb.sh +++ b/ct/influxdb.sh @@ -43,4 +43,4 @@ description msg_ok "Completed successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP} and Port 8888 for v1 or Port 8086 (v2)${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP} and Port 8888 for v1, Port 8086 for v2 or Port 8181 for v3${CL}" diff --git a/install/influxdb-install.sh b/install/influxdb-install.sh index d0859471b..2d2b18a1d 100644 --- a/install/influxdb-install.sh +++ b/install/influxdb-install.sh @@ -21,23 +21,29 @@ setup_deb822_repo \ "stable" msg_ok "Set up InfluxDB Repository" -read -r -p "${TAB3}Which version of InfluxDB to install? (1 or 2) " prompt +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 INFLUX="2" else INFLUX="1" fi -msg_info "Installing InfluxDB" +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 $STD apt install -y influxdb2 + systemctl enable -q --now influxdb else $STD apt install -y influxdb download_file "https://dl.influxdata.com/chronograf/releases/chronograf_1.10.8_amd64.deb" "${HOME}/chronograf_1.10.8_amd64.deb" $STD dpkg -i "${HOME}/chronograf_1.10.8_amd64.deb" rm -rf "${HOME}/chronograf_1.10.8_amd64.deb" + systemctl enable -q --now influxdb fi -systemctl enable -q --now influxdb msg_ok "Installed InfluxDB" read -r -p "${TAB3}Would you like to add Telegraf? " prompt