mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-01 03:02:35 +00:00
Add openSUSE Tumbleweed & Leap
This commit is contained in:
parent
4ae40df1a3
commit
5256e48b92
@ -22,7 +22,7 @@ Supported distributions:
|
|||||||
- CentOS
|
- CentOS
|
||||||
- Arch Linux
|
- Arch Linux
|
||||||
- Oracle Linux
|
- Oracle Linux
|
||||||
- Opensuse Tumbleweed
|
- Opensuse Tumbleweed & Leap
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -53,7 +53,10 @@ function checkOS() {
|
|||||||
OS=oracle
|
OS=oracle
|
||||||
elif [[ -e /etc/os-release ]]; then
|
elif [[ -e /etc/os-release ]]; then
|
||||||
source /etc/os-release
|
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
|
elif [[ -e /etc/arch-release ]]; then
|
||||||
OS=arch
|
OS=arch
|
||||||
else
|
else
|
||||||
@ -164,6 +167,8 @@ function installWireGuard() {
|
|||||||
pacman -S --needed --noconfirm wireguard-tools qrencode
|
pacman -S --needed --noconfirm wireguard-tools qrencode
|
||||||
elif [[ ${OS} == 'opensuse-tumbleweed' ]]; then
|
elif [[ ${OS} == 'opensuse-tumbleweed' ]]; then
|
||||||
zypper in wireguard-tools qrencode
|
zypper in wireguard-tools qrencode
|
||||||
|
elif [[ ${OS} == 'opensuse-leap' ]]; then
|
||||||
|
zypper in wireguard-tools qrencode
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure the directory exists (this does not seem the be the case on fedora)
|
# Make sure the directory exists (this does not seem the be the case on fedora)
|
||||||
|
Loading…
Reference in New Issue
Block a user