mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-24 05:56:02 +03:00
Add openSUSE Support
This commit is contained in:
parent
39caf2fcf6
commit
1f635e9639
7
wireguard-install.sh
Normal file → Executable file
7
wireguard-install.sh
Normal file → Executable file
@ -61,8 +61,10 @@ function checkOS() {
|
|||||||
OS=oracle
|
OS=oracle
|
||||||
elif [[ -e /etc/arch-release ]]; then
|
elif [[ -e /etc/arch-release ]]; then
|
||||||
OS=arch
|
OS=arch
|
||||||
|
elif [[ -e /etc/os-release ]]; then
|
||||||
|
OS=suse
|
||||||
else
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -204,6 +206,9 @@ function installWireGuard() {
|
|||||||
dnf install -y wireguard-tools qrencode iptables
|
dnf install -y wireguard-tools qrencode iptables
|
||||||
elif [[ ${OS} == 'arch' ]]; then
|
elif [[ ${OS} == 'arch' ]]; then
|
||||||
pacman -S --needed --noconfirm wireguard-tools qrencode
|
pacman -S --needed --noconfirm wireguard-tools qrencode
|
||||||
|
elif [[ ${OS} == 'suse' ]]; then
|
||||||
|
zypper in wireguard-tools
|
||||||
|
zypper in 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