From 99b3767fd6c4b64cf01a160044093cf2cdc758f4 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 3 Nov 2023 08:48:48 +0000 Subject: [PATCH] Read/set wg_option flag --- installers/raspbian.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/installers/raspbian.sh b/installers/raspbian.sh index e6a1e9da..32b115af 100755 --- a/installers/raspbian.sh +++ b/installers/raspbian.sh @@ -6,7 +6,7 @@ # License: GNU General Public License v3.0 # License URI: https://github.com/raspap/raspap-webgui/blob/master/LICENSE # -# Usage: raspbian.sh options +# Usage: raspbian.sh [options] # # Installs an instance of RaspAP. # @@ -15,6 +15,7 @@ # -c, --cert, --certficate Installs mkcert and generates an SSL certificate for lighttpd # -o, --openvpn Used with -y, --yes, sets OpenVPN install option (0=no install) # -a, --adblock Used with -y, --yes, sets Adblock install option (0=no install) +# -w, --wireguard Used with -y, --yes, sets WireGuard install option (0=no install) # -c, --cert, --certificate Installs an SSL certificate with mkcert and configures lighttpd for HTTPS # -r, --repo, --repository Overrides the default GitHub repo (RaspAP/raspap-webgui) # -b, --branch Overrides the default git branch (master) @@ -59,6 +60,7 @@ function _parse_params() { upgrade=0 ovpn_option=1 adblock_option=1 + wg_option=1 insiders=0 minwrite=0 acctoken="" @@ -77,6 +79,10 @@ function _parse_params() { adblock_option="$2" shift ;; + -w|--wireguard) + wg_option="$2" + shift + ;; -c|--cert|--certificate) install_cert=1 ;; @@ -150,6 +156,7 @@ OPTIONS: -c, --cert, --certificate Installs an SSL certificate for lighttpd -o, --openvpn Used with -y, --yes, sets OpenVPN install option (0=no install) -a, --adblock Used with -y, --yes, sets Adblock install option (0=no install) +-w, --wireguard Used with -y, --yes, sets WireGuard install option (0=no install) -c, --cert, --certificate Installs an SSL certificate with mkcert and configures lighttpd for HTTPS -r, --repo, --repository Overrides the default GitHub repo (RaspAP/raspap-webgui) -b, --branch Overrides the default git branch (latest release)