mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Update wireguard.sh
Added support CentOS 8
This commit is contained in:
parent
f6c309404d
commit
35b8ec1406
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user