Skip to content

Commit

Permalink
Made changes to the peer install script that makes it work on alpine …
Browse files Browse the repository at this point in the history
…linux without changes
  • Loading branch information
simen64 committed Sep 30, 2024
1 parent 2fd60b2 commit a42e485
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions release_files/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ SUDO=""

if command -v sudo > /dev/null && [ "$(id -u)" -ne 0 ]; then
SUDO="sudo"
elif command -v sudo > /dev/null && [ "$(id -u)" -ne 0 ]; then
SUDO="doas"
fi

if [ -z ${NETBIRD_RELEASE+x} ]; then
Expand Down Expand Up @@ -68,7 +70,7 @@ download_release_binary() {
if [ -n "$GITHUB_TOKEN" ]; then
cd /tmp && curl -H "Authorization: token ${GITHUB_TOKEN}" -LO "$DOWNLOAD_URL"
else
cd /tmp && curl -LO "$DOWNLOAD_URL"
cd /tmp && curl -LO --dns-servers 8.8.8.8 "$DOWNLOAD_URL"
fi


Expand Down Expand Up @@ -316,7 +318,7 @@ install_netbird() {
}

version_greater_equal() {
printf '%s\n%s\n' "$2" "$1" | sort -V -C
printf '%s\n%s\n' "$2" "$1" | sort -V -c
}

is_bin_package_manager() {
Expand Down

0 comments on commit a42e485

Please sign in to comment.