From 06fb9cb73545718fc2ef00cd7f681f2c91a741cd Mon Sep 17 00:00:00 2001 From: Noah Kantrowitz Date: Mon, 16 Oct 2023 14:17:32 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Fix=20RHEL=20install=20instructi?= =?UTF-8?q?ons=20to=20work.=20(#5498)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 📝 Fix RHEL install instructions to work. `sudo ... > ...` doesn't work, use the same `tee` trick as the deb instructions. * 📝 Echo doesn't process \n by default. (cherry picked from commit 308fbb57846d3228753c52ebb791396d43f91687) --- docs/sources/flow/setup/install/linux.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sources/flow/setup/install/linux.md b/docs/sources/flow/setup/install/linux.md index 06675ae93495..f18cab7a297c 100644 --- a/docs/sources/flow/setup/install/linux.md +++ b/docs/sources/flow/setup/install/linux.md @@ -31,8 +31,8 @@ To install Grafana Agent in flow mode on Linux, run the following commands in a ```rhel-fedora wget -q -O gpg.key https://rpm.grafana.com/gpg.key sudo rpm --import gpg.key - sudo echo '[grafana]\nname=grafana\nbaseurl=https://rpm.grafana.com\nrepo_gpgcheck=1\nenabled=1\ngpgcheck=1\ngpgkey=https://rpm.grafana.com/gpg.key\nsslverify=1 -sslcacert=/etc/pki/tls/certs/ca-bundle.crt' > /etc/yum.repos.d/grafana.repo + echo -e '[grafana]\nname=grafana\nbaseurl=https://rpm.grafana.com\nrepo_gpgcheck=1\nenabled=1\ngpgcheck=1\ngpgkey=https://rpm.grafana.com/gpg.key\nsslverify=1 +sslcacert=/etc/pki/tls/certs/ca-bundle.crt' | sudo tee /etc/yum.repos.d/grafana.repo ``` ```suse-opensuse