Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions release_files/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@
EOF
}

add_zypper_repo() {
${SUDO} zypper --non-interactive removerepo netbird >/dev/null 2>&1 || true
${SUDO} zypper --non-interactive addrepo -f -g https://pkgs.netbird.io/yum/ netbird
${SUDO} zypper --gpg-auto-import-keys refresh netbird
}
Comment on lines +137 to +141
Comment thread
coderabbitai[bot] marked this conversation as resolved.

prepare_tun_module() {
# Create the necessary file structure for /dev/net/tun
if [ ! -c /dev/net/tun ]; then
Expand Down Expand Up @@ -244,6 +250,14 @@
${SUDO} dnf -y install netbird-ui
fi
;;
zypper)
add_zypper_repo
${SUDO} zypper --non-interactive install netbird

if ! $SKIP_UI_APP; then
${SUDO} zypper --non-interactive install netbird-ui
Comment on lines +255 to +258
fi
;;
rpm-ostree)
add_rpm_repo
${SUDO} rpm-ostree -y install netbird
Expand Down Expand Up @@ -438,6 +452,9 @@
elif [ -x "$(command -v apt-get)" ]; then
PACKAGE_MANAGER="apt"
echo "The installation will be performed using apt package manager"
elif [ -x "$(command -v zypper)" ]; then

Check failure on line 455 in release_files/install.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=netbirdio_netbird&issues=AZ64x8dYKloCNoILoA2t&open=AZ64x8dYKloCNoILoA2t&pullRequest=6413
PACKAGE_MANAGER="zypper"
echo "The installation will be performed using zypper package manager"
elif [ -x "$(command -v dnf)" ]; then
PACKAGE_MANAGER="dnf"
echo "The installation will be performed using dnf package manager"
Expand Down
Loading