1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-06-05 04:50:49 +00:00

Add openSUSE Tumbleweed

This commit is contained in:
landaal-ict 2022-01-07 19:43:31 +01:00
parent 469c2c58d6
commit cfec4dd9f7

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

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