1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-05-31 18:50:47 +00:00

Add openSUSE Tumbleweed & Leap

This commit is contained in:
landaal-ict 2022-01-07 20:25:00 +01:00
parent 4ae40df1a3
commit 5256e48b92
2 changed files with 7 additions and 2 deletions

View File

@ -22,7 +22,7 @@ Supported distributions:
- CentOS
- Arch Linux
- Oracle Linux
- Opensuse Tumbleweed
- Opensuse Tumbleweed & Leap
## Usage

View File

@ -53,7 +53,10 @@ function checkOS() {
OS=oracle
elif [[ -e /etc/os-release ]]; then
source /etc/os-release
OS="${ID}" #openSUSE
OS="${ID}" #opensuse-tumbleweet
elif [[ -e /etc/os-release ]]; then
source /etc/os-release
OS="${ID}" #opensuse-leap
elif [[ -e /etc/arch-release ]]; then
OS=arch
else
@ -164,6 +167,8 @@ function installWireGuard() {
pacman -S --needed --noconfirm wireguard-tools qrencode
elif [[ ${OS} == 'opensuse-tumbleweed' ]]; then
zypper in wireguard-tools qrencode
elif [[ ${OS} == 'opensuse-leap' ]]; then
zypper in wireguard-tools qrencode
fi
# Make sure the directory exists (this does not seem the be the case on fedora)