Skip to content

Commit

Permalink
Simplify Debian repo key installation
Browse files Browse the repository at this point in the history
The `mopidy.gpg` file is now dearmored, removing the need for `gpg` to
be installed on the enduser's system.

The use of `tee` has been replaced by running `wget` as root. We already
run `wget` as root in the next step, so this isn't something we're
trying to avoid. The main benefit is to avoid using `tee`, which outputs
the binary contents of `mopidy.gpg` to the terminal too, risking that
many users will think something is broken.
  • Loading branch information
jodal committed Mar 14, 2022
1 parent 825c7c0 commit 145c1d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/installation/debian.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ Install from apt.mopidy.com
#. Add the archive's GPG key::

sudo mkdir -p /usr/local/share/keyrings
wget -q -O - https://apt.mopidy.com/mopidy.gpg | gpg --dearmor | \
sudo tee /usr/local/share/keyrings/mopidy-archive-keyring.gpg
sudo wget -q -O /usr/local/share/keyrings/mopidy-archive-keyring.gpg \
https://apt.mopidy.com/mopidy.gpg

#. Add the APT repo to your package sources::

Expand Down

0 comments on commit 145c1d1

Please sign in to comment.