-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Delivery/PackagingRPM and deb packaging, tar and zip archives, shell and batch scriptsRPM and deb packaging, tar and zip archives, shell and batch scripts>docsGeneral docs changesGeneral docs changesTeam:DeliveryMeta label for Delivery teamMeta label for Delivery teamTeam:DocsMeta label for docs teamMeta label for docs team
Description
The documentation for installing the debian/ubuntu package suggests running:
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.listWe added this to our chef scripts and this of course runs a lot and ends up appending the same line over and over again. This slows down apt-get operations to the point where it is unusable. When I checked the file it had 500+ lines already.
I would suggest changing this to:
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
without the -a or to:
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elastic-7.x.list
The one issue I can see with this approach is if there is a usecase for this file to contain more than one line. In that case, maybe use separate files for each entry.
Note. created the ticket after discussion here: https://discuss.elastic.co/t/minor-problem-with-documentation-for-es-debian-installation/200172
Metadata
Metadata
Assignees
Labels
:Delivery/PackagingRPM and deb packaging, tar and zip archives, shell and batch scriptsRPM and deb packaging, tar and zip archives, shell and batch scripts>docsGeneral docs changesGeneral docs changesTeam:DeliveryMeta label for Delivery teamMeta label for Delivery teamTeam:DocsMeta label for docs teamMeta label for docs team