Skip to content
Snippets Groups Projects
Commit be19d8a0 authored by Richard Delorier's avatar Richard Delorier
Browse files

Use `sudo tee` for apt pinning to align with other commands which use sudo.

parent b9e53794
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ To install the Runner: ...@@ -66,7 +66,7 @@ To install the Runner:
be done manually or automatically - will be done using the same source: be done manually or automatically - will be done using the same source:
> >
```bash ```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 Explanation: Prefer GitLab provided packages over the Debian native ones
Package: gitlab-runner Package: gitlab-runner
Pin: origin packages.gitlab.com Pin: origin packages.gitlab.com
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment