mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-27 07:12:27 +00:00
pihole -a is gone
Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
parent
26ef0be9d6
commit
4d55bc1ae3
2 changed files with 9 additions and 29 deletions
|
@ -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
|
||||||
|
@ -2494,7 +2494,7 @@ main() {
|
||||||
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
|
||||||
|
|
|
@ -7,13 +7,7 @@ Pi-hole : A black-hole for internet advertisements
|
||||||
|
|
||||||
\fBpihole\fR (\fB-w\fR|\fB-b\fR|\fB--wild\fR|\fB--regex\fR) [options] domain(s)
|
\fBpihole\fR (\fB-w\fR|\fB-b\fR|\fB--wild\fR|\fB--regex\fR) [options] domain(s)
|
||||||
.br
|
.br
|
||||||
\fBpihole -a\fR \fB-p\fR password
|
\fBpihole setpassword\fR password
|
||||||
.br
|
|
||||||
\fBpihole -a\fR (\fB-c|-f|-k\fR)
|
|
||||||
.br
|
|
||||||
\fBpihole -a -i\fR interface
|
|
||||||
.br
|
|
||||||
\fBpihole -a -l\fR privacylevel
|
|
||||||
.br
|
.br
|
||||||
\fBpihole -c\fR [-j|-r|-e]
|
\fBpihole -c\fR [-j|-r|-e]
|
||||||
.br
|
.br
|
||||||
|
@ -120,25 +114,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
|
||||||
|
@ -211,6 +186,11 @@ Available commands and options:
|
||||||
repositories
|
repositories
|
||||||
.br
|
.br
|
||||||
|
|
||||||
|
\fBsetpassword\fR
|
||||||
|
.br
|
||||||
|
Set Web Interface password
|
||||||
|
.br
|
||||||
|
|
||||||
\fBuninstall\fR
|
\fBuninstall\fR
|
||||||
.br
|
.br
|
||||||
Uninstall Pi-hole from your system
|
Uninstall Pi-hole from your system
|
||||||
|
@ -303,7 +283,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
|
||||||
|
|
Loading…
Reference in a new issue