Fixed issue #72

This commit is contained in:
Teddysun 2020-08-31 21:35:10 +09:00
parent 26a9c1fbc8
commit 4bb6be0ab8
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -299,11 +299,8 @@ install_wg_1() {
_info "Install wireguard from repository" _info "Install wireguard from repository"
case "$(_os)" in case "$(_os)" in
ubuntu) ubuntu)
_error_detect "add-apt-repository ppa:wireguard/wireguard"
_error_detect "apt-get update" _error_detect "apt-get update"
_error_detect "apt-get -y install linux-headers-$(uname -r)" _error_detect "apt-get -y install wireguard"
_error_detect "apt-get -y install wireguard-dkms"
_error_detect "apt-get -y install wireguard-tools"
;; ;;
debian) debian)
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list