mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-10-31 18:52:31 +00:00
Added support for Oracle Linux 8 from the manual
https://www.wireguard.com/install/#oracle-linux-8-uek6-tools
This commit is contained in:
parent
574cc06b31
commit
69b6095aca
@ -47,10 +47,13 @@ function checkOS() {
|
|||||||
elif [[ -e /etc/centos-release ]]; then
|
elif [[ -e /etc/centos-release ]]; then
|
||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
OS=centos
|
OS=centos
|
||||||
|
elif [[ -e /etc/oracle-release ]]; then
|
||||||
|
source /etc/os-release
|
||||||
|
OS=oracle
|
||||||
elif [[ -e /etc/arch-release ]]; then
|
elif [[ -e /etc/arch-release ]]; then
|
||||||
OS=arch
|
OS=arch
|
||||||
else
|
else
|
||||||
echo "Looks like you aren't running this installer on a Debian, Ubuntu, Fedora, CentOS or Arch Linux system"
|
echo "Looks like you aren't running this installer on a Debian, Ubuntu, Fedora, CentOS, Oracle or Arch Linux system"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -147,6 +150,12 @@ function installWireGuard() {
|
|||||||
yum -y install yum-plugin-elrepo
|
yum -y install yum-plugin-elrepo
|
||||||
fi
|
fi
|
||||||
yum -y install kmod-wireguard wireguard-tools iptables qrencode
|
yum -y install kmod-wireguard wireguard-tools iptables qrencode
|
||||||
|
elif [[ ${OS} == 'oracle' ]]; then
|
||||||
|
dnf install -y oraclelinux-developer-release-el8
|
||||||
|
dnf config-manager --disable -y ol8_developer
|
||||||
|
dnf config-manager --enable -y ol8_developer_UEKR6
|
||||||
|
dnf config-manager --save -y --setopt=ol8_developer_UEKR6.includepkgs='wireguard-tools*'
|
||||||
|
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
|
||||||
fi
|
fi
|
||||||
@ -373,6 +382,9 @@ function uninstallWg() {
|
|||||||
elif [[ ${OS} == 'centos' ]]; then
|
elif [[ ${OS} == 'centos' ]]; then
|
||||||
yum -y remove kmod-wireguard wireguard-tools qrencode
|
yum -y remove kmod-wireguard wireguard-tools qrencode
|
||||||
yum -y autoremove
|
yum -y autoremove
|
||||||
|
elif [[ ${OS} == 'oracle' ]]; then
|
||||||
|
yum -y remove wireguard-tools qrencode
|
||||||
|
yum -y autoremove
|
||||||
elif [[ ${OS} == 'arch' ]]; then
|
elif [[ ${OS} == 'arch' ]]; then
|
||||||
pacman -Rs --noconfirm wireguard-tools qrencode
|
pacman -Rs --noconfirm wireguard-tools qrencode
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user