Skip to content

Commit 25792a3

Browse files
Update installation on debian
the $CODENAME doesn't work properly Signed-off-by: Mohammed Abdallah <[email protected]>
1 parent 7679304 commit 25792a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installation/linux/debian.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Refer to the [supported platform documentation](../supported-platforms.md) to se
5454
For Debian, you must add the Fluent Bit APT server entry to your sources lists.
5555

5656
```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
57+
echo "deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/ubuntu/$(grep -oP '(?<=VERSION_CODENAME=).*' /etc/os-release || lsb_release -cs) $(grep -oP '(?<=VERSION_CODENAME=).*' /etc/os-release || lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/fluent-bit.list
5858
```
5959

6060
Replace _`CODENAME`_ with your specific [Debian release name](https://wiki.debian.org/DebianReleases#Production\_Releases) (for example: `bookworm` for Debian 12)

0 commit comments

Comments
 (0)