浏览代码

Update grafana-v5-install.sh

Grafana packages will be served from a new repository
tteckster 2 年之前
父节点
当前提交
3641028e1d
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      install/grafana-v5-install.sh

+ 2 - 4
install/grafana-v5-install.sh

@@ -90,10 +90,8 @@ $STD apt-get install -y software-properties-common
 msg_ok "Installed Dependencies"
 
 msg_info "Setting up Grafana Repository"
-$STD apt-key add <(curl -fsSL https://packages.grafana.com/gpg.key)
-cat <<EOF >/etc/apt/sources.list.d/grafana.list
-deb https://packages.grafana.com/oss/deb stable main
-EOF
+wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
+sh -c 'echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" > /etc/apt/sources.list.d/grafana.list'
 msg_ok "Set up Grafana Repository"
 
 msg_info "Installing Grafana"