Ver código fonte

Updates the command to add the repo to not use add-apt-repository, which automatically adds a non-working deb-src line to sources.list. Command now uses echo to write the correct line to sources.list instead.

Fixes #9261
Paul Echeverri 10 anos atrás
pai
commit
4f938ad37e
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      docs/reference/setup/repositories.asciidoc

+ 4 - 4
docs/reference/setup/repositories.asciidoc

@@ -11,23 +11,23 @@ Elasticsearch Signing Key, with fingerprint
 
     4609 5ACC 8548 582C 1A26 99A9 D27D 666C D88E 42B4
 
-to sign all our packages.  It is available from http://pgp.mit.edu.
+to sign all our packages. It is available from http://pgp.mit.edu.
 
 [float]
 === APT
 
-Download and install the Public Signing Key
+Download and install the Public Signing Key:
 
 [source,sh]
 --------------------------------------------------
 wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
 --------------------------------------------------
 
-Add the following to your /etc/apt/sources.list to enable the repository
+Add the repository definition to your `/etc/apt/sources.list` file:
 
 ["source","sh",subs="attributes,callouts"]
 --------------------------------------------------
-sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/{branch}/debian stable main"
+echo "deb http://packages.elasticsearch.org/elasticsearch/{branch}/debian stable main" | sudo tee -a /etc/apt/sources.list
 --------------------------------------------------
 
 Run apt-get update and the repository is ready for use. You can install it with :