1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-05-31 18:50:47 +00:00

Rework Remove and Install

This commit is contained in:
liberodark 2019-12-18 14:27:59 +01:00 committed by GitHub
parent 0d40ac2460
commit c510a74406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,6 +245,12 @@ install_wg
configure_wg
}
arg_remove_wg(){
# Remove WireGuard
detect_bad
remove_wg
}
parse_args ()
{
while [ $# -ne 0 ]
@ -256,7 +262,7 @@ parse_args ()
;;
-remove)
shift
remove_wg >&2
arg_remove_wg >&2
;;
-h|--help)
usage