Skip to content

Commit ec30a37

Browse files
Update installation on debian (#2004)
* Update installation on debian the $CODENAME doesn't work properly Signed-off-by: Mohammed Abdallah <[email protected]> * Update installation on debian - Redirect stderr messages, to not get extra lines of output like No LSB modules are available. - Separate the codename variable to be more efficient and readable Signed-off-by: Mohammed Abdallah <[email protected]> --------- Signed-off-by: Mohammed Abdallah <[email protected]>
1 parent 890e434 commit ec30a37

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

installation/linux/debian.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,16 @@ Refer to the [supported platform documentation](../supported-platforms.md) to se
5252
## Update your sources lists
5353

5454
For Debian, you must add the Fluent Bit APT server entry to your sources lists.
55+
Ensure codename is set to your specific [Debian release name](https://wiki.debian.org/DebianReleases#Production\_Releases). (for example: `bookworm` for Debian 12)
5556

57+
```bash
58+
codename=$(grep -oP '(?<=VERSION_CODENAME=).*' /etc/os-release 2>/dev/null || lsb_release -cs 2>/dev/null)
59+
```
60+
Now Update your sources listes
5661
```bash copy
57-
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
62+
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
5863
```
5964

60-
Replace _`CODENAME`_ with your specific [Debian release name](https://wiki.debian.org/DebianReleases#Production\_Releases) (for example: `bookworm` for Debian 12)
61-
6265
## Update your repositories database
6366

6467
Update your system's `apt` database:

0 commit comments

Comments
 (0)