This commit is contained in:
landaal-ict 2023-04-21 15:07:59 +02:00 committed by GitHub
commit 085017a0f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -24,6 +24,7 @@ Supported distributions:
- Oracle Linux
- Rocky Linux >= 8
- Ubuntu >= 18.04
- openSUSE
## Usage

7
wireguard-install.sh Normal file → Executable file
View File

@ -61,8 +61,10 @@ function checkOS() {
OS=oracle
elif [[ -e /etc/arch-release ]]; then
OS=arch
elif [[ -e /etc/os-release ]]; then
OS=suse
else
echo "Looks like you aren't running this installer on a Debian, Ubuntu, Fedora, CentOS, AlmaLinux, Oracle or Arch Linux system"
echo "Looks like you aren't running this installer on a Debian, Ubuntu, Fedora, CentOS, AlmaLinux, Oracle, openSUSE or Arch Linux system"
exit 1
fi
}
@ -204,6 +206,9 @@ function installWireGuard() {
dnf install -y wireguard-tools qrencode iptables
elif [[ ${OS} == 'arch' ]]; then
pacman -S --needed --noconfirm wireguard-tools qrencode
elif [[ ${OS} == 'suse' ]]; then
zypper in wireguard-tools
zypper in qrencode
fi
# Make sure the directory exists (this does not seem the be the case on fedora)