소스 검색

Update influxdb-v5-install.sh

fix sources
tteckster 2 년 전
부모
커밋
8307bbe86c
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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