Skip to content

Commit

Permalink
Merge pull request #1527 from mysteriumnetwork/wireguard-install-via-ppa
Browse files Browse the repository at this point in the history
Install wireguard from launchpad instead of deb unstable
  • Loading branch information
tadaskay authored Jan 16, 2020
2 parents fed4f6c + e19c3bd commit 5b5bfe1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions bin/package/raspberry/files/1-setup-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ add_apt_source() {
touch /boot/ssh

# Add APT sources
add_apt_source "deb http://deb.debian.org/debian/ unstable main" "/etc/apt/sources.list.d/unstable.list"
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' | tee --append /etc/apt/preferences.d/limit-unstable
add_apt_source "deb http://ppa.launchpad.net/mysteriumnetwork/node/ubuntu bionic main" "/etc/apt/sources.list.d/mysterium.list"
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECCB6A56B22C536D
add_apt_source "deb http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic main" "/etc/apt/sources.list.d/wireguard.list"
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AE33835F504A1A25
apt-get update --allow-releaseinfo-change

# Install myst dependencies
Expand Down
6 changes: 2 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,9 @@ install_dependencies() {
fi

# Wireguard
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
echo "deb http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic main" > "/etc/apt/sources.list.d/wireguard.list"
apt-get install -y dirmngr
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECCB6A56B22C536D
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AE33835F504A1A25
apt-get update
apt-get install -y wireguard
apt-get install -y libmnl-dev libelf-dev linux-headers-$(uname -r) build-essential pkg-config
Expand Down

0 comments on commit 5b5bfe1

Please sign in to comment.