Skip to content

Commit 01f921d

Browse files
fix(install): update Ubuntu installation commands for non-root users (#1955)
* 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 <53952292+mohamedabdallah20@users.noreply.github.com> * fix(install): update Debian 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 <53952292+mohamedabdallah20@users.noreply.github.com> * fix(install): update raspbian-raspberry-pi 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 <53952292+mohamedabdallah20@users.noreply.github.com> --------- Signed-off-by: Mohammed Abdallah <53952292+mohamedabdallah20@users.noreply.github.com>
1 parent f416a90 commit 01f921d

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

installation/linux/debian.md

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

3232
```bash copy
33-
curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg
33+
sudo sh -c 'curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg'
3434
```
3535

3636
### Updated key from March 2022
@@ -61,10 +61,10 @@ which platforms are supported in each release.
6161
## Update your sources lists
6262

6363
For Debian, you must add the Fluent Bit APT server entry to your sources lists.
64-
Add the following content at bottom of your `/etc/apt/sources.list` file.
64+
6565

6666
```bash copy
67-
deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/debian/${CODENAME} ${CODENAME} main
67+
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
6868
```
6969

7070
Replace _`CODENAME`_ with your specific

installation/linux/raspbian-raspberry-pi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The first step is to add the Fluent Bit server GPG key to your keyring so you
1414
can get FLuent Bit signed packages:
1515

1616
```shell
17-
curl https://packages.fluentbit.io/fluentbit.key | sudo apt-key add -
17+
sudo sh -c 'curl https://packages.fluentbit.io/fluentbit.key | sudo apt-key add - '
1818
```
1919

2020
### Updated key from March 2022
@@ -52,19 +52,19 @@ Add the following content at bottom of your `/etc/apt/sources.list` file.
5252
### Raspbian 12 (Bookworm)
5353

5454
```text
55-
deb https://packages.fluentbit.io/raspbian/bookworm bookworm main
55+
echo "deb https://packages.fluentbit.io/raspbian/bookworm bookworm main" | sudo tee /etc/apt/sources.list.d/fluent-bit.list
5656
```
5757

5858
### Raspbian 11 (Bullseye)
5959

6060
```text
61-
deb https://packages.fluentbit.io/raspbian/bullseye bullseye main
61+
echo "deb https://packages.fluentbit.io/raspbian/bullseye bullseye main" | sudo tee /etc/apt/sources.list.d/fluent-bit.list
6262
```
6363

6464
### Raspbian 10 (Buster)
6565

6666
```text
67-
deb https://packages.fluentbit.io/raspbian/buster buster main
67+
echo "deb https://packages.fluentbit.io/raspbian/buster buster main" | sudo tee /etc/apt/sources.list.d/fluent-bit.list
6868
```
6969

7070
### Update your repositories database

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)