mirror of
https://github.com/netbirdio/netbird.git
synced 2025-04-24 03:19:22 +02:00
Handle DNF5 install script (#3026)
This commit is contained in:
parent
287ae81195
commit
f591e47404
@ -239,7 +239,12 @@ install_netbird() {
|
|||||||
dnf)
|
dnf)
|
||||||
add_rpm_repo
|
add_rpm_repo
|
||||||
${SUDO} dnf -y install dnf-plugin-config-manager
|
${SUDO} dnf -y install dnf-plugin-config-manager
|
||||||
|
if [[ "$(dnf --version | head -n1 | cut -d. -f1)" > "4" ]];
|
||||||
|
then
|
||||||
|
${SUDO} dnf config-manager addrepo --from-repofile=/etc/yum.repos.d/netbird.repo
|
||||||
|
else
|
||||||
${SUDO} dnf config-manager --add-repo /etc/yum.repos.d/netbird.repo
|
${SUDO} dnf config-manager --add-repo /etc/yum.repos.d/netbird.repo
|
||||||
|
fi
|
||||||
${SUDO} dnf -y install netbird
|
${SUDO} dnf -y install netbird
|
||||||
|
|
||||||
if ! $SKIP_UI_APP; then
|
if ! $SKIP_UI_APP; then
|
||||||
|
Loading…
Reference in New Issue
Block a user