Skip to content

Commit 4acbfac

Browse files
Update installation on ubuntu commands
remove $CODENAME that doesn't work properly Signed-off-by: Mohammed Abdallah <[email protected]>
1 parent 7679304 commit 4acbfac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installation/linux/ubuntu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Refer to the [supported platform documentation](../supported-platforms.md) to se
4848
On Ubuntu, you need to add the Fluent Bit APT server entry to your sources lists. Ensure `CODENAME` is set to your specific [Ubuntu release name](https://wiki.ubuntu.com/Releases). For example, `focal` for Ubuntu 20.04.
4949

5050
```bash
51-
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
51+
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
5252
```
5353

5454
### Update your repositories database

0 commit comments

Comments
 (0)