1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-07-10 23:17:40 +02:00

Merge pull request #1752 from RaspAP/maint/installer-option

Adds -k --check option to install loader
This commit is contained in:
Bill Zimmerman 2025-02-08 13:02:34 +01:00 committed by GitHub
commit cc9720e8ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,6 +54,7 @@ OPTIONS:
-p, --path <path> Used with -d, --update, sets the existing install path
-i, --insiders Installs from the Insiders Edition (RaspAP/raspap-insiders)
-m, --minwrite Configures a microSD card for minimum write operation
-k, --check <flag> Sets the connectivity check flag (default is 1=perform check)
-v, --version Outputs release info and exits
-n, --uninstall Loads and executes the uninstaller
-h, --help Outputs usage notes and exits
@ -81,13 +82,16 @@ EOF
set -eo pipefail
function _main() {
_setup_colors
_check_internet
# set defaults
repo="RaspAP/raspap-webgui" # override with -r, --repo option
repo_common="$repo"
_parse_params "$@"
_setup_colors
if [ "${check}" == 1 ]; then
_check_internet
fi
_log_output
_load_installer
}
@ -105,6 +109,7 @@ function _parse_params() {
minwrite=0
acctoken=""
path=""
check=1
while :; do
case "${1-}" in
@ -175,6 +180,10 @@ function _parse_params() {
path="$2"
shift
;;
-k|--check)
check="$2"
shift
;;
-v|--version)
_version
;;