mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Update wireguard.sh
This commit is contained in:
parent
9a8fab74f5
commit
b5339300bb
@ -793,12 +793,12 @@ Options:
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_from_repo() {
|
install_from_repo() {
|
||||||
check_os
|
|
||||||
_is_installed
|
_is_installed
|
||||||
rt=$?
|
rt=$?
|
||||||
if [ ${rt} -eq 0 ]; then
|
if [ ${rt} -eq 0 ]; then
|
||||||
_red "WireGuard was already installed\n" && exit 0
|
_red "WireGuard was already installed\n" && exit 0
|
||||||
fi
|
fi
|
||||||
|
check_os
|
||||||
if check_kernel_version; then
|
if check_kernel_version; then
|
||||||
if [ ${rt} -eq 2 ]; then
|
if [ ${rt} -eq 2 ]; then
|
||||||
install_wg_3
|
install_wg_3
|
||||||
@ -817,12 +817,12 @@ install_from_repo() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_from_source() {
|
install_from_source() {
|
||||||
check_os
|
|
||||||
_is_installed
|
_is_installed
|
||||||
rt=$?
|
rt=$?
|
||||||
if [ ${rt} -eq 0 ]; then
|
if [ ${rt} -eq 0 ]; then
|
||||||
_red "WireGuard was already installed\n" && exit 0
|
_red "WireGuard was already installed\n" && exit 0
|
||||||
fi
|
fi
|
||||||
|
check_os
|
||||||
if check_kernel_version; then
|
if check_kernel_version; then
|
||||||
if [ ${rt} -eq 2 ]; then
|
if [ ${rt} -eq 2 ]; then
|
||||||
install_wg_4
|
install_wg_4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user