mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-10-31 18:52:31 +00:00
Add openSUSE Tumbleweed & Leap
This commit is contained in:
parent
4ae40df1a3
commit
5256e48b92
@ -22,7 +22,7 @@ Supported distributions:
|
||||
- CentOS
|
||||
- Arch Linux
|
||||
- Oracle Linux
|
||||
- Opensuse Tumbleweed
|
||||
- Opensuse Tumbleweed & Leap
|
||||
|
||||
## Usage
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user