Refactor the command to set up the repository

This commit is contained in:
Olivier Benz 2023-03-23 19:45:25 +01:00
parent f1f1247021
commit 38f62aa9b4
No known key found for this signature in database
GPG Key ID: C25FE875940B14CE
2 changed files with 8 additions and 6 deletions

View File

@ -102,9 +102,10 @@ Docker from the repository.
3. Use the following command to set up the repository: 3. Use the following command to set up the repository:
```console ```console
$ . /etc/os-release && echo \ $ echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] {{ download-url-base }} \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] {{ download-url-base }} \
$VERSION_CODENAME stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
``` ```
#### Install Docker Engine #### Install Docker Engine

View File

@ -101,9 +101,10 @@ Docker from the repository.
3. Use the following command to set up the repository: 3. Use the following command to set up the repository:
```console ```console
$ . /etc/os-release && echo \ $ echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] {{ download-url-base }} \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] {{ download-url-base }} \
$VERSION_CODENAME stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
``` ```
#### Install Docker Engine #### Install Docker Engine