From be19d8a0729e5957567cd72ff35b56c64b84896c Mon Sep 17 00:00:00 2001
From: Richard Delorier <rdelorier@gmail.com>
Date: Fri, 5 Oct 2018 17:15:35 +0000
Subject: [PATCH] Use `sudo tee` for apt pinning to align with other commands
 which use sudo.

---
 docs/install/linux-repository.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/install/linux-repository.md b/docs/install/linux-repository.md
index 1e7e318c4..4f3937f42 100644
--- a/docs/install/linux-repository.md
+++ b/docs/install/linux-repository.md
@@ -66,7 +66,7 @@ To install the Runner:
     be done manually or automatically - will be done using the same source:
     >
     ```bash
-    cat > /etc/apt/preferences.d/pin-gitlab-runner.pref <<EOF
+    cat <<EOF | sudo tee /etc/apt/preferences.d/pin-gitlab-runner.pref
     Explanation: Prefer GitLab provided packages over the Debian native ones
     Package: gitlab-runner
     Pin: origin packages.gitlab.com
-- 
GitLab