mirror of
https://github.com/teddysun/across.git
synced 2025-02-23 23:49:33 +08:00
Update wireguard.sh
Check installed or not when install wireguard from repository or source Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
parent
c09c313278
commit
71414f3e0b
@ -613,6 +613,7 @@ Options:
|
||||
}
|
||||
|
||||
install_from_repo() {
|
||||
_is_installed && check_version && _red "WireGuard was already installed\n" && exit 0
|
||||
check_os
|
||||
install_wg_1
|
||||
create_server_if
|
||||
@ -624,6 +625,7 @@ install_from_repo() {
|
||||
}
|
||||
|
||||
install_from_source() {
|
||||
_is_installed && check_version && _red "WireGuard was already installed\n" && exit 0
|
||||
check_os
|
||||
install_wg_2
|
||||
create_server_if
|
||||
|
Loading…
x
Reference in New Issue
Block a user