diff --git a/README.md b/README.md index 1ad452d..6fe03c8 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Supported distributions: - CentOS - Arch Linux - Oracle Linux -- Opensuse Tumbleweed +- Opensuse Tumbleweed & Leap ## Usage diff --git a/wireguard-install.sh b/wireguard-install.sh index 33b34fb..0f9891b 100755 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -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)