From cfec4dd9f7ad9bc3527641f89c137faaafade632 Mon Sep 17 00:00:00 2001 From: landaal-ict Date: Fri, 7 Jan 2022 19:43:31 +0100 Subject: [PATCH] Add openSUSE Tumbleweed --- wireguard-install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) mode change 100644 => 100755 wireguard-install.sh diff --git a/wireguard-install.sh b/wireguard-install.sh old mode 100644 new mode 100755 index 9126172..33b34fb --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -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)