summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authoranarcat <anarcat@riseup.net>2018-09-17 06:53:01 -0700
committeranarcat <anarcat@riseup.net>2018-09-17 06:53:01 -0700
commitd23b1e6af36e0d22990da87b2a84d67fd5abd074 (patch)
treeab853667b9566b97b9657870a2c9dc31a159fe1d /pages
parent96b199b7599d65ddf99af08eaba6f7087e524b83 (diff)
fix permission error when adding backports
I think those instructions are too complicated - `sh -c` will be difficult to parse for new (or even experienced) users and is error prone. Nevertheless, the instructions as is will not work because the redirection does not run as root, as is the case for the other instructions. This was probably forgotten when adding the backports entry (which goes to show this is error-prone). (I would instead recommend "piping to tee", like `echo ... | sudo tee -a sources.list`, for example.)
Diffstat (limited to 'pages')
-rw-r--r--pages/install/linux/en.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/install/linux/en.md b/pages/install/linux/en.md
index 04b7ccd..81ed467 100644
--- a/pages/install/linux/en.md
+++ b/pages/install/linux/en.md
@@ -24,7 +24,7 @@ You need to enable `stretch-backports` to install the latest `leap-archive-keyri
if you already have `stretch-backports` enabled):
```
-sudo echo "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list
+sudo sh -c 'echo "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list'
sudo apt update && sudo apt install -t stretch-backports leap-archive-keyring
```