From 8307bbe86c6e81a753ab021dc3a40b64661b2675 Mon Sep 17 00:00:00 2001
From: tteckster <tteckster@gmail.com>
Date: Fri, 27 Jan 2023 01:33:16 -0500
Subject: [PATCH] Update influxdb-v5-install.sh

fix sources
---
 install/influxdb-v5-install.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/install/influxdb-v5-install.sh b/install/influxdb-v5-install.sh
index 5affc2de..0ab4978d 100644
--- a/install/influxdb-v5-install.sh
+++ b/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