mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Fix a wrong usage of sudo in debian install doc
Currently `sudo` is applied to `echo` resulting in: `/etc/apt/sources.list.d/terraform.list: Permission denied` Using `echo "..." | sudo tee /etc/apt/sources.list.d/terraform.list` fix the problem
This commit is contained in:
parent
c4d7207230
commit
2fd3da94c7
@ -39,7 +39,7 @@ After registering the key, you can add the official HashiCorp repository to
|
|||||||
your system:
|
your system:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/terraform-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/terraform.list
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/terraform-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/terraform.list
|
||||||
```
|
```
|
||||||
|
|
||||||
The above command line uses the following sub-shell commands:
|
The above command line uses the following sub-shell commands:
|
||||||
|
Loading…
Reference in New Issue
Block a user