Update wireguard.sh

This commit is contained in:
Teddysun 2020-04-06 10:35:29 +09:00 committed by GitHub
parent b5339300bb
commit 5c95fdb6fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -343,7 +343,6 @@ install_wg_2() {
_info "Install wireguard from source"
case "$(_os)" in
ubuntu|debian|raspbian)
_error_detect "apt-get update"
if [ ! -d "/usr/src/linux-headers-$(uname -r)" ]; then
if [ "$(_os)" = "raspbian" ]; then
_error_detect "apt-get -y install raspberrypi-kernel-headers"