From 6488c9d0e3a8407253006a9edd58487474978aca Mon Sep 17 00:00:00 2001 From: anarcat Date: Fri, 14 Dec 2018 14:04:57 +0100 Subject: 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.)' --- pages/linux/en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ``` -- cgit v1.2.3