InfluxDB: Fixes (#10308)

This commit is contained in:
Slaviša Arežina
2025-12-25 15:17:56 +01:00
committed by GitHub
parent d91753824c
commit c769a43f62
2 changed files with 9 additions and 9 deletions

View File

@@ -27,9 +27,11 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Updating ${APP}"
msg_info "Updating InfluxDB"
$STD apt update
$STD apt -y upgrade
$STD apt upgrade -y
msg_ok "Updated InfluxDB"
msg_ok "Updated successfully!"
exit
}

View File

@@ -17,7 +17,7 @@ msg_info "Setting up InfluxDB Repository"
setup_deb822_repo \
"influxdata" \
"https://repos.influxdata.com/influxdata-archive.key" \
"https://repos.influxdata.com/$(get_os_info id)" \
"https://repos.influxdata.com/debian" \
"stable"
msg_ok "Set up InfluxDB Repository"
@@ -29,17 +29,15 @@ else
fi
msg_info "Installing InfluxDB"
$STD apt update
if [[ $INFLUX == "2" ]]; then
$STD apt install -y influxdb2
else
$STD apt install -y influxdb
curl -fsSL "https://dl.influxdata.com/chronograf/releases/chronograf_1.10.8_amd64.deb" -o "/chronograf_1.10.8_amd64.deb"
$STD dpkg -i chronograf_1.10.8_amd64.deb
rm -rf /chronograf_1.10.8_amd64.deb
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"
fi
rm /etc/apt/sources.list.d/influxdata.list
$STD systemctl enable --now influxdb
systemctl enable -q --now influxdb
msg_ok "Installed InfluxDB"
read -r -p "${TAB3}Would you like to add Telegraf? <y/N> " prompt