Skip to content

Commit 04c8e63

Browse files
fix(install): update Ubuntu installation commands for non-root users
- Modified GPG key import command to use `sudo sh -c` for proper permission handling - Simplified repository setup into a single pipe-to-tee command to avoid manual file editing - Ensures commands work safely without requiring direct root shell access Signed-off-by: Mohammed Abdallah <[email protected]>
1 parent 44919d1 commit 04c8e63

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

installation/linux/ubuntu.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Follow the official
2525
[Debian wiki guidance](https://wiki.debian.org/DebianRepository/UseThirdParty#OpenPGP_Key_distribution).
2626

2727
```bash
28-
curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg
28+
sudo sh -c 'curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg'
2929
```
3030

3131
### Updated key from March 2022
@@ -56,12 +56,11 @@ which platforms are supported in each release.
5656
## Update your sources lists
5757

5858
On Ubuntu, you need to add the Fluent Bit APT server entry to your sources lists.
59-
Add the following content at bottom of your `/etc/apt/sources.list` file. Ensure
60-
`CODENAME` is set to your specific [Ubuntu release name](https://wiki.ubuntu.com/Releases).
59+
Ensure `CODENAME` is set to your specific [Ubuntu release name](https://wiki.ubuntu.com/Releases).
6160
For example, `focal` for Ubuntu 20.04.
6261

6362
```bash
64-
deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/ubuntu/${CODENAME} ${CODENAME} main
63+
echo "deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/ubuntu/${CODENAME} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/fluent-bit.list
6564
```
6665

6766
### Update your repositories database

0 commit comments

Comments
 (0)