diff --git a/ct/influxdb.sh b/ct/influxdb.sh index 60b8d8446..f88ea9926 100644 --- a/ct/influxdb.sh +++ b/ct/influxdb.sh @@ -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 } diff --git a/install/influxdb-install.sh b/install/influxdb-install.sh index 295e253b8..1f2031e21 100644 --- a/install/influxdb-install.sh +++ b/install/influxdb-install.sh @@ -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? " prompt