mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-02 20:20:56 +00:00
Improve v6 user output (#5829)
This commit is contained in:
commit
6cca30ca45
@ -91,7 +91,7 @@ IPV4_ADDRESS=${IPV4_ADDRESS}
|
|||||||
IPV6_ADDRESS=${IPV6_ADDRESS}
|
IPV6_ADDRESS=${IPV6_ADDRESS}
|
||||||
# Give settings their default values. These may be changed by prompts later in the script.
|
# Give settings their default values. These may be changed by prompts later in the script.
|
||||||
QUERY_LOGGING=
|
QUERY_LOGGING=
|
||||||
WEBPORT=8080
|
WEBPORT=
|
||||||
PRIVACY_LEVEL=
|
PRIVACY_LEVEL=
|
||||||
|
|
||||||
# Where old configs go to if a v6 migration is performed
|
# Where old configs go to if a v6 migration is performed
|
||||||
@ -2446,7 +2446,7 @@ main() {
|
|||||||
if [[ $(pihole-FTL --config webserver.api.pwhash) == '""' ]]; then
|
if [[ $(pihole-FTL --config webserver.api.pwhash) == '""' ]]; then
|
||||||
# generate a random password
|
# generate a random password
|
||||||
pw=$(tr -dc _A-Z-a-z-0-9 </dev/urandom | head -c 8)
|
pw=$(tr -dc _A-Z-a-z-0-9 </dev/urandom | head -c 8)
|
||||||
pihole -a -p "${pw}"
|
pihole setpassword "${pw}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Migrate existing install to v6.0
|
# Migrate existing install to v6.0
|
||||||
@ -2490,18 +2490,20 @@ main() {
|
|||||||
# Update local and remote versions via updatechecker
|
# Update local and remote versions via updatechecker
|
||||||
/opt/pihole/updatecheck.sh
|
/opt/pihole/updatecheck.sh
|
||||||
|
|
||||||
if [[ "${useUpdateVars}" == false ]]; then
|
|
||||||
displayFinalMessage "${pw}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If there is a password
|
# If there is a password
|
||||||
if ((${#pw} > 0)); then
|
if ((${#pw} > 0)); then
|
||||||
# display the password
|
# display the password
|
||||||
printf " %b Web Interface password: %b%s%b\\n" "${INFO}" "${COL_LIGHT_GREEN}" "${pw}" "${COL_NC}"
|
printf " %b Web Interface password: %b%s%b\\n" "${INFO}" "${COL_LIGHT_GREEN}" "${pw}" "${COL_NC}"
|
||||||
printf " %b This can be changed using 'pihole -a -p'\\n\\n" "${INFO}"
|
printf " %b This can be changed using 'pihole setpassword'\\n\\n" "${INFO}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${useUpdateVars}" == false ]]; then
|
if [[ "${useUpdateVars}" == false ]]; then
|
||||||
|
# Get the Web interface port, return only the first port and strip all non-numeric characters
|
||||||
|
WEBPORT=$(getFTLConfigValue webserver.port|cut -d, -f1 | tr -cd '0-9')
|
||||||
|
|
||||||
|
# Display the completion dialog
|
||||||
|
displayFinalMessage "${pw}"
|
||||||
|
|
||||||
# If the Web interface was installed,
|
# If the Web interface was installed,
|
||||||
printf " %b View the web interface at http://pi.hole:${WEBPORT}/admin or http://%s/admin\\n\\n" "${INFO}" "${IPV4_ADDRESS%/*}:${WEBPORT}"
|
printf " %b View the web interface at http://pi.hole:${WEBPORT}/admin or http://%s/admin\\n\\n" "${INFO}" "${IPV4_ADDRESS%/*}:${WEBPORT}"
|
||||||
|
|
||||||
|
@ -5,19 +5,15 @@ Pi-hole : A black-hole for internet advertisements
|
|||||||
.br
|
.br
|
||||||
.SH "SYNOPSIS"
|
.SH "SYNOPSIS"
|
||||||
|
|
||||||
\fBpihole\fR (\fB-w\fR|\fB-b\fR|\fB--wild\fR|\fB--regex\fR) [options] domain(s)
|
\fBpihole\fR (\fB-allow\fR|\fB-deny\fR) [options] domain(s)
|
||||||
.br
|
.br
|
||||||
\fBpihole -a\fR \fB-p\fR password
|
\fBpihole\fR (\fB--allow-regex\fR|\fB--regex\fR) [options] domain(s)
|
||||||
.br
|
.br
|
||||||
\fBpihole -a\fR (\fB-c|-f|-k\fR)
|
\fBpihole\fR (\fB--allow-wild\fR|\fB--wild\fR) [options] domain(s)
|
||||||
.br
|
.br
|
||||||
\fBpihole -a -i\fR interface
|
\fBpihole setpassword\fR password
|
||||||
.br
|
.br
|
||||||
\fBpihole -a -l\fR privacylevel
|
\fBpihole\fR \fB-d\fR [-a] [-c]
|
||||||
.br
|
|
||||||
\fBpihole -c\fR [-j|-r|-e]
|
|
||||||
.br
|
|
||||||
\fBpihole\fR \fB-d\fR [-a]
|
|
||||||
.br
|
.br
|
||||||
\fBpihole -f
|
\fBpihole -f
|
||||||
.br
|
.br
|
||||||
@ -25,7 +21,7 @@ pihole -r
|
|||||||
.br
|
.br
|
||||||
\fBpihole\fR \fB-t\fR [arg]
|
\fBpihole\fR \fB-t\fR [arg]
|
||||||
.br
|
.br
|
||||||
pihole -g\fR
|
\fBpihole -g\fR
|
||||||
.br
|
.br
|
||||||
\fBpihole\fR -\fBq\fR [options]
|
\fBpihole\fR -\fBq\fR [options]
|
||||||
.br
|
.br
|
||||||
@ -33,20 +29,22 @@ pihole -g\fR
|
|||||||
.br
|
.br
|
||||||
\fBpihole -up \fR[--check-only]
|
\fBpihole -up \fR[--check-only]
|
||||||
.br
|
.br
|
||||||
\fBpihole -v\fR [-p|-a|-f] [-c|-l|-hash]
|
\fBpihole -v\fR
|
||||||
.br
|
.br
|
||||||
\fBpihole uninstall
|
\fBpihole uninstall\fR
|
||||||
.br
|
.br
|
||||||
pihole status
|
\fBpihole status\fR
|
||||||
.br
|
.br
|
||||||
pihole reloaddns\fR
|
\fBpihole reloaddns\fR
|
||||||
.br
|
.br
|
||||||
pihole reloadlists\fR
|
\fBpihole reloadlists\fR
|
||||||
.br
|
.br
|
||||||
\fBpihole\fR (\fBenable\fR|\fBdisable\fR [time])
|
\fBpihole\fR (\fBenable\fR|\fBdisable\fR [time])
|
||||||
.br
|
.br
|
||||||
\fBpihole\fR \fBcheckout\fR repo [branch]
|
\fBpihole\fR \fBcheckout\fR repo [branch]
|
||||||
.br
|
.br
|
||||||
|
\fBpihole\fR \api\fR endpoint
|
||||||
|
.br
|
||||||
\fBpihole\fR \fBhelp\fR
|
\fBpihole\fR \fBhelp\fR
|
||||||
.br
|
.br
|
||||||
.SH "DESCRIPTION"
|
.SH "DESCRIPTION"
|
||||||
@ -99,6 +97,7 @@ Available commands and options:
|
|||||||
.br
|
.br
|
||||||
|
|
||||||
-a Enable automated debugging
|
-a Enable automated debugging
|
||||||
|
-c Include a Pi-hole database integrity check
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fB-f, flush\fR
|
\fB-f, flush\fR
|
||||||
@ -120,25 +119,6 @@ Available commands and options:
|
|||||||
(regular expressions are supported)
|
(regular expressions are supported)
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fB-a, admin\fR [options]
|
|
||||||
.br
|
|
||||||
|
|
||||||
(Admin options):
|
|
||||||
.br
|
|
||||||
-p, password Set Web Interface password
|
|
||||||
.br
|
|
||||||
-c, celsius Set Celsius as preferred temperature unit
|
|
||||||
.br
|
|
||||||
-f, fahrenheit Set Fahrenheit as preferred temperature unit
|
|
||||||
.br
|
|
||||||
-k, kelvin Set Kelvin as preferred temperature unit
|
|
||||||
.br
|
|
||||||
-i, interface Specify dnsmasq's interface listening behavior
|
|
||||||
.br
|
|
||||||
-l, privacylevel <level> Set privacy level
|
|
||||||
(0 = lowest, 3 = highest)
|
|
||||||
.br
|
|
||||||
|
|
||||||
\fB-g, updateGravity\fR
|
\fB-g, updateGravity\fR
|
||||||
.br
|
.br
|
||||||
Update the list of ad-serving domains
|
Update the list of ad-serving domains
|
||||||
@ -151,11 +131,9 @@ Available commands and options:
|
|||||||
|
|
||||||
(Query options):
|
(Query options):
|
||||||
.br
|
.br
|
||||||
-adlist Print the name of the block list URL
|
-partial Search the adlists for partially matching domains
|
||||||
.br
|
.br
|
||||||
-exact Search the block lists for exact domain matches
|
-all Return all query matches within a adlists
|
||||||
.br
|
|
||||||
-all Return all query matches within a block list
|
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fB-h, --help, help\fR
|
\fB-h, --help, help\fR
|
||||||
@ -186,29 +164,14 @@ Available commands and options:
|
|||||||
--check-only Exit script before update is performed.
|
--check-only Exit script before update is performed.
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fB-v, version\fR [repo] [options]
|
\fB-v, version\fR
|
||||||
.br
|
.br
|
||||||
Show installed versions of Pi-hole, Web Interface & FTL
|
Show installed versions of Pi-hole, Web Interface & FTL
|
||||||
.br
|
.br
|
||||||
|
|
||||||
|
\fBsetpassword\fR
|
||||||
.br
|
.br
|
||||||
(repo options):
|
Set Web Interface password
|
||||||
.br
|
|
||||||
-p, --pihole Only retrieve info regarding Pi-hole repository
|
|
||||||
.br
|
|
||||||
-a, --admin Only retrieve info regarding web
|
|
||||||
repository
|
|
||||||
.br
|
|
||||||
-f, --ftl Only retrieve info regarding FTL repository
|
|
||||||
.br
|
|
||||||
(version options):
|
|
||||||
.br
|
|
||||||
-c, --current Return the current version
|
|
||||||
.br
|
|
||||||
-l, --latest Return the latest version
|
|
||||||
.br
|
|
||||||
--hash Return the GitHub hash from your local
|
|
||||||
repositories
|
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBuninstall\fR
|
\fBuninstall\fR
|
||||||
@ -221,14 +184,14 @@ Available commands and options:
|
|||||||
Display the running status of Pi-hole subsystems
|
Display the running status of Pi-hole subsystems
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBenable\fR
|
\fBenable\fR [time]
|
||||||
.br
|
.br
|
||||||
Enable Pi-hole subsystems
|
Enable Pi-hole blocking, optionally for a set duration
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBdisable\fR [time]
|
\fBdisable\fR [time]
|
||||||
.br
|
.br
|
||||||
Disable Pi-hole subsystems, optionally for a set duration
|
Disable Pi-hole blocking, optionally for a set duration
|
||||||
.br
|
.br
|
||||||
|
|
||||||
(time options):
|
(time options):
|
||||||
@ -270,6 +233,11 @@ Available commands and options:
|
|||||||
.br
|
.br
|
||||||
branchname Update subsystems to the specified branchname
|
branchname Update subsystems to the specified branchname
|
||||||
.br
|
.br
|
||||||
|
|
||||||
|
\fBapi\fR endpoint
|
||||||
|
.br
|
||||||
|
Query the Pi-hole API at <endpoint>
|
||||||
|
.br
|
||||||
.SH "EXAMPLE"
|
.SH "EXAMPLE"
|
||||||
|
|
||||||
Some usage examples
|
Some usage examples
|
||||||
@ -283,7 +251,7 @@ Allow-/denylist manipulation
|
|||||||
Allow "iloveads.example.com"
|
Allow "iloveads.example.com"
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBpihole deny not noads.example.com\fR
|
\fBpihole deny remove noads.example.com\fR
|
||||||
.br
|
.br
|
||||||
Removes "noads.example.com" from denylist
|
Removes "noads.example.com" from denylist
|
||||||
.br
|
.br
|
||||||
@ -303,7 +271,7 @@ Allow-/denylist manipulation
|
|||||||
Changing the Web Interface password
|
Changing the Web Interface password
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBpihole -a -p ExamplePassword\fR
|
\fBpihole setpassword ExamplePassword\fR
|
||||||
.br
|
.br
|
||||||
Change the password to "ExamplePassword"
|
Change the password to "ExamplePassword"
|
||||||
.br
|
.br
|
||||||
@ -319,9 +287,9 @@ Updating lists from internet sources
|
|||||||
Displaying version information
|
Displaying version information
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBpihole -v -a -c\fR
|
\fBpihole -v\fR
|
||||||
.br
|
.br
|
||||||
Display the current version of web
|
Display the current version of Pi-hole
|
||||||
.br
|
.br
|
||||||
|
|
||||||
Temporarily disabling Pi-hole
|
Temporarily disabling Pi-hole
|
||||||
@ -350,10 +318,11 @@ Switching Pi-hole subsystem branches
|
|||||||
Flush information stored in Pi-hole's network tables
|
Flush information stored in Pi-hole's network tables
|
||||||
.br
|
.br
|
||||||
|
|
||||||
.SH "SEE ALSO"
|
\fBpihole api stats/summary\fR
|
||||||
|
|
||||||
\fBlighttpd\fR(8), \fBpihole-FTL\fR(8)
|
|
||||||
.br
|
.br
|
||||||
|
Queries FTL for the stats/summary endpoint
|
||||||
|
.br
|
||||||
|
|
||||||
.SH "COLOPHON"
|
.SH "COLOPHON"
|
||||||
|
|
||||||
Get sucked into the latest news and community activity by entering Pi-hole's orbit. Information about Pi-hole, and the latest version of the software can be found at https://pi-hole.net.
|
Get sucked into the latest news and community activity by entering Pi-hole's orbit. Information about Pi-hole, and the latest version of the software can be found at https://pi-hole.net.
|
||||||
|
1
pihole
1
pihole
@ -501,6 +501,7 @@ Options:
|
|||||||
uninstall Uninstall Pi-hole from your system
|
uninstall Uninstall Pi-hole from your system
|
||||||
status Display the running status of Pi-hole subsystems
|
status Display the running status of Pi-hole subsystems
|
||||||
enable Enable Pi-hole subsystems
|
enable Enable Pi-hole subsystems
|
||||||
|
Add '-h' for more info on enable usage
|
||||||
disable Disable Pi-hole subsystems
|
disable Disable Pi-hole subsystems
|
||||||
Add '-h' for more info on disable usage
|
Add '-h' for more info on disable usage
|
||||||
reloaddns Update the lists and flush the cache without restarting the DNS server
|
reloaddns Update the lists and flush the cache without restarting the DNS server
|
||||||
|
Loading…
Reference in New Issue
Block a user