mirror of
https://github.com/teddysun/across.git
synced 2025-10-30 16:25:35 +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:
@@ -613,6 +613,7 @@ Options:
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_from_repo() {
|
install_from_repo() {
|
||||||
|
_is_installed && check_version && _red "WireGuard was already installed\n" && exit 0
|
||||||
check_os
|
check_os
|
||||||
install_wg_1
|
install_wg_1
|
||||||
create_server_if
|
create_server_if
|
||||||
@@ -624,6 +625,7 @@ install_from_repo() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_from_source() {
|
install_from_source() {
|
||||||
|
_is_installed && check_version && _red "WireGuard was already installed\n" && exit 0
|
||||||
check_os
|
check_os
|
||||||
install_wg_2
|
install_wg_2
|
||||||
create_server_if
|
create_server_if
|
||||||
|
|||||||
Reference in New Issue
Block a user