From 1f635e9639a54736f164b30146f4094ff4c049f0 Mon Sep 17 00:00:00 2001 From: wesley Date: Fri, 21 Apr 2023 15:04:11 +0200 Subject: [PATCH 1/2] Add openSUSE Support --- 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 2f95ecb..b4972fa --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -61,8 +61,10 @@ function checkOS() { OS=oracle elif [[ -e /etc/arch-release ]]; then OS=arch + elif [[ -e /etc/os-release ]]; then + OS=suse else - echo "Looks like you aren't running this installer on a Debian, Ubuntu, Fedora, CentOS, AlmaLinux, Oracle or Arch Linux system" + echo "Looks like you aren't running this installer on a Debian, Ubuntu, Fedora, CentOS, AlmaLinux, Oracle, openSUSE or Arch Linux system" exit 1 fi } @@ -204,6 +206,9 @@ function installWireGuard() { dnf install -y wireguard-tools qrencode iptables elif [[ ${OS} == 'arch' ]]; then pacman -S --needed --noconfirm wireguard-tools qrencode + elif [[ ${OS} == 'suse' ]]; then + zypper in wireguard-tools + zypper in qrencode fi # Make sure the directory exists (this does not seem the be the case on fedora) From b98dba022ff818dc850de9229d38949016dd4414 Mon Sep 17 00:00:00 2001 From: wesley Date: Fri, 21 Apr 2023 15:05:41 +0200 Subject: [PATCH 2/2] Add openSUSE to Readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a8fe265..19eb2f1 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Supported distributions: - Oracle Linux - Rocky Linux >= 8 - Ubuntu >= 18.04 +- openSUSE ## Usage