From be00f3e7235d5513dce6517b9e9cd92a79bb3f42 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Wed, 2 Oct 2024 19:31:39 +0100 Subject: [PATCH] Rename `reloaddns-lists` to `reloadlists` per suggestion Co-authored-by: RD WebDesign Signed-off-by: Adam Warner --- advanced/bash-completion/pihole | 2 +- manpages/pihole.8 | 2 +- pihole | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/advanced/bash-completion/pihole b/advanced/bash-completion/pihole index 822ec288..4343cf92 100644 --- a/advanced/bash-completion/pihole +++ b/advanced/bash-completion/pihole @@ -7,7 +7,7 @@ _pihole() { case "${prev}" in "pihole") - opts="allow allow-regex allow-wild deny checkout debug disable enable flush help logging query reconfigure regex reloaddns reloaddns-lists status tail uninstall updateGravity updatePihole version wildcard arpflush api" + opts="allow allow-regex allow-wild deny checkout debug disable enable flush help logging query reconfigure regex reloaddns reloadlists status tail uninstall updateGravity updatePihole version wildcard arpflush api" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) ;; "allow"|"deny"|"wildcard"|"regex"|"allow-regex"|"allow-wild") diff --git a/manpages/pihole.8 b/manpages/pihole.8 index 3da23ffe..5964c691 100644 --- a/manpages/pihole.8 +++ b/manpages/pihole.8 @@ -241,7 +241,7 @@ Available commands and options: Update the lists and flush the cache without restarting the DNS server .br -\fBreloaddns-lists\fR +\fBreloadlists\fR .br Update the lists WITHOUT flushing the cache or restarting the DNS server .br diff --git a/pihole b/pihole index 3b98d2a9..df8225ab 100755 --- a/pihole +++ b/pihole @@ -505,7 +505,7 @@ Options: disable Disable Pi-hole subsystems Add '-h' for more info on disable usage reloaddns Update the lists and flush the cache without restarting the DNS server - reloaddns-lists Update the lists WITHOUT flushing the cache or restarting the DNS server + reloadlists Update the lists WITHOUT flushing the cache or restarting the DNS server checkout Switch Pi-hole subsystems to a different GitHub branch Add '-h' for more info on checkout usage arpflush Flush information stored in Pi-hole's network tables"; @@ -543,7 +543,7 @@ case "${1}" in "-d" | "debug" ) ;; "-g" | "updateGravity" ) ;; "reloaddns" ) ;; - "reloaddns-lists" ) ;; + "reloadlists" ) ;; "setpassword" ) ;; "checkout" ) ;; "updatechecker" ) ;; @@ -585,7 +585,7 @@ case "${1}" in "enable" ) piholeEnable true "$2";; "disable" ) piholeEnable false "$2";; "reloaddns" ) reloadDNS "reload";; - "reloaddns-lists" ) reloadDNS "reload-lists";; + "reloadlists" ) reloadDNS "reload-lists";; "setpassword" ) SetWebPassword "$@";; "checkout" ) piholeCheckoutFunc "$@";; "updatechecker" ) shift; updateCheckFunc "$@";;