Sfoglia il codice sorgente

Update influxdb-v5-install.sh

fix sources
tteckster 2 anni fa
parent
commit
8307bbe86c
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      install/influxdb-v5-install.sh

+ 1 - 3
install/influxdb-v5-install.sh

@@ -93,9 +93,7 @@ msg_ok "Installed Dependencies"
 
 msg_info "Setting up InfluxDB Repository"
 $STD apt-key add <(curl -fsSL https://repos.influxdata.com/influxdb.key)
-cat <<EOF >/etc/apt/sources.list.d/influxdb.list
-deb https://repos.influxdata.com/debian bullseye stable
-EOF
+sh -c 'echo "deb https://repos.influxdata.com/debian $(lsb_release -cs) stable" > sudo tee /etc/apt/sources.list.d/influxdb.list'
 msg_ok "Set up InfluxDB Repository"
 
 read -r -p "Which version of InfluxDB to install? (1 or 2) " prompt