Update wireguard.sh

Added support CentOS 8
This commit is contained in:
Teddysun 2019-10-27 15:06:06 +09:00
parent f6c309404d
commit 35b8ec1406
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -260,6 +260,7 @@ install_wg_2() {
_error_detect "dnf -y install gcc"
_error_detect "dnf -y install make"
_error_detect "dnf -y install libmnl-devel"
_error_detect "dnf -y install elfutils-libelf-devel"
;;
centos)
_error_detect "yum -y install epel-release"
@ -268,7 +269,10 @@ install_wg_2() {
_error_detect "yum -y install bc"
_error_detect "yum -y install gcc"
_error_detect "yum -y install make"
_error_detect "yum -y install yum-utils"
[ -n "$(_os_ver)" -a "$(_os_ver)" -eq 8 ] && _error_detect "yum-config-manager --enable PowerTools"
_error_detect "yum -y install libmnl-devel"
_error_detect "yum -y install elfutils-libelf-devel"
;;
*)
;; # do nothing