Skip to content

Commit

Permalink
Handle DNF5 install script (#3026)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-essam authored Dec 16, 2024
1 parent 287ae81 commit f591e47
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion release_files/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ install_netbird() {
dnf)
add_rpm_repo
${SUDO} dnf -y install dnf-plugin-config-manager
${SUDO} dnf config-manager --add-repo /etc/yum.repos.d/netbird.repo
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
fi
${SUDO} dnf -y install netbird

if ! $SKIP_UI_APP; then
Expand Down

0 comments on commit f591e47

Please sign in to comment.