Skip to content
This repository was archived by the owner on Feb 16, 2020. It is now read-only.
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
5 changes: 5 additions & 0 deletions wireguard-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ if [ -e /etc/centos-release ]; then
DISTRO="CentOS"
elif [ -e /etc/debian_version ]; then
DISTRO=$( lsb_release -is )
elif [ -e /etc/arch-release ]; then
DISTRO="Arch"
else
echo "Your distribution is not supported (yet)"
exit
Expand Down Expand Up @@ -92,6 +94,9 @@ if [ ! -f "$WG_CONFIG" ]; then
curl -Lo /etc/yum.repos.d/wireguard.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo
yum install epel-release -y
yum install wireguard-dkms qrencode wireguard-tools -y
elif [ "$DISTRO" == "Arch" ]; then
pacman -Sy wireguard-tools wireguard-dkms iptables

fi

SERVER_PRIVKEY=$( wg genkey )
Expand Down