summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranarcat <anarcat@riseup.net>2018-12-14 14:04:57 +0100
committerkwadronaut <kwadronaut@leap.se>2018-12-14 14:08:33 +0100
commit6488c9d0e3a8407253006a9edd58487474978aca (patch)
tree7de441e4d26e19f8f3bf487f3fc8239be8334854
parent349ad3102ff10206475dc1c411cf9defcacaa6ae (diff)
fix permission error when adding backports
https://0xacab.org/leap/bitmask_help/commit/d23b1e6af36e0d22990da87b2a84d67fd5abd074 '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.)'
-rw-r--r--pages/linux/en.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/linux/en.md b/pages/linux/en.md
index 04b7ccd..81ed467 100644
--- a/pages/linux/en.md
+++ b/pages/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
```