Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add single line installer #775

Merged
merged 16 commits into from
Apr 3, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
wrap apt repo into function
bcmmbaga committed Apr 3, 2023
commit 641eb5cf32644380c9ab1af46a957047936b842a
24 changes: 14 additions & 10 deletions release_files/install.sh
Original file line number Diff line number Diff line change
@@ -48,6 +48,19 @@ download_release_binary() {
fi
}

add_apt_repo() {
sudo apt-get update
sudo apt-get install ca-certificates gnupg -y

curl -sSL https://pkgs.wiretrustee.com/debian/public.key \
| gpg --dearmor --output /usr/share/keyrings/wiretrustee-archive-keyring.gpg

APT_REPO="deb [signed-by=/usr/share/keyrings/wiretrustee-archive-keyring.gpg] https://pkgs.wiretrustee.com/debian stable main"
echo "$APT_REPO" | sudo tee /etc/apt/sources.list.d/wiretrustee.list

sudo apt-get update
}

add_rpm_repo() {
cat <<-EOF | sudo tee /etc/yum.repos.d/wiretrustee.repo
[Wiretrustee]
@@ -181,16 +194,7 @@ install_netbird() {
# only the CLI will be installed
case "$PACKAGE_MANAGER" in
apt)
sudo apt-get update
sudo apt-get install ca-certificates gnupg -y

curl -sSL https://pkgs.wiretrustee.com/debian/public.key \
| gpg --dearmor --output /usr/share/keyrings/wiretrustee-archive-keyring.gpg

APT_REPO="deb [signed-by=/usr/share/keyrings/wiretrustee-archive-keyring.gpg] https://pkgs.wiretrustee.com/debian stable main"
echo "$APT_REPO" | sudo tee /etc/apt/sources.list.d/wiretrustee.list

sudo apt-get update
add_apt_repo
sudo apt-get install netbird -y

if ! $SKIP_UI_APP; then