Compare commits

...

3 Commits

Author SHA1 Message Date
WANG Xu 67ad320001
Merge pull request #30654 from taosdata/enh/switch_oss_for_grafana
enh: switch from Grafana Enterprise to Community Edition
2025-04-05 10:34:27 +08:00
jiajingbin 0c8dc093c5 enh: add a condition 2025-04-05 00:29:44 +08:00
jiajingbin cc1ccdbb30 enh: switch oss for grafana 2025-04-05 00:21:07 +08:00
1 changed files with 3 additions and 3 deletions

6
packaging/setup_env.sh Normal file → Executable file
View File

@ -1550,11 +1550,11 @@ deploy_grafana() {
# Install Grafana for ubuntu/debian
deploy_debian_grafana() {
# Check if Grafana is already installed
if ! dpkg -s "grafana" &> /dev/null; then
if ! dpkg -s "grafana" && ! dpkg -s "grafana-enterprise" &> /dev/null; then
echo "Downloading the latest Grafana .deb package..."
# Download the latest Grafana .deb package
grafana_latest_version=$1
wget https://dl.grafana.com/enterprise/release/grafana-enterprise_${grafana_latest_version}_amd64.deb -O grafana.deb
wget https://dl.grafana.com/oss/release/grafana_${grafana_latest_version}_amd64.deb -O grafana.deb
# install the required fontconfig package
install_package adduser libfontconfig1 musl
echo "Installing Grafana..."
@ -1586,7 +1586,7 @@ deploy_redhat_grafana() {
echo "Downloading the latest Grafana .rpm package..."
# Download the latest Grafana .rpm package
grafana_latest_version=$1
wget https://dl.grafana.com/enterprise/release/grafana-enterprise-${grafana_latest_version}-1.x86_64.rpm -O grafana.rpm
wget https://dl.grafana.com/oss/release/grafana-${grafana_latest_version}-1.x86_64.rpm -O grafana.rpm
# Install the required fontconfig package
yum install -y fontconfig