mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Merge branch 'release/v4.0' into fix/parse_pihole-FTL.conf
This commit is contained in:
commit
06875f2cc9
3 changed files with 64 additions and 32 deletions
|
@ -51,6 +51,7 @@ PI_HOLE_CONFIG_DIR="/etc/pihole"
|
||||||
useUpdateVars=false
|
useUpdateVars=false
|
||||||
|
|
||||||
adlistFile="/etc/pihole/adlists.list"
|
adlistFile="/etc/pihole/adlists.list"
|
||||||
|
regexFile="/etc/pihole/regex.list"
|
||||||
# Pi-hole needs an IP address; to begin, these variables are empty since we don't know what the IP is until
|
# Pi-hole needs an IP address; to begin, these variables are empty since we don't know what the IP is until
|
||||||
# this script can run
|
# this script can run
|
||||||
IPV4_ADDRESS=""
|
IPV4_ADDRESS=""
|
||||||
|
@ -1243,6 +1244,11 @@ installConfigs() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
# Install an empty regex file
|
||||||
|
if [[ ! -f "${regexFile}" ]]; then
|
||||||
|
# Let PHP edit the regex file, if installed
|
||||||
|
install -o pihole -g "${LIGHTTPD_GROUP:-pihole}" -m 664 /dev/null "${regexFile}"
|
||||||
|
fi
|
||||||
# If the user chose to install the dashboard,
|
# If the user chose to install the dashboard,
|
||||||
if [[ "${INSTALL_WEB_SERVER}" == true ]]; then
|
if [[ "${INSTALL_WEB_SERVER}" == true ]]; then
|
||||||
# and if the Web server conf directory does not exist,
|
# and if the Web server conf directory does not exist,
|
||||||
|
|
|
@ -643,11 +643,6 @@ if [[ "${skipDownload}" == false ]] || [[ "${listType}" == "whitelist" ]]; then
|
||||||
gravity_Whitelist
|
gravity_Whitelist
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set proper permissions on the regex file
|
|
||||||
touch "${regexFile}"
|
|
||||||
chown pihole:www-data "${regexFile}"
|
|
||||||
chmod 664 "${regexFile}"
|
|
||||||
|
|
||||||
convert_wildcard_to_regex
|
convert_wildcard_to_regex
|
||||||
gravity_ShowBlockCount
|
gravity_ShowBlockCount
|
||||||
|
|
||||||
|
|
|
@ -125,13 +125,16 @@ Available commands and options:
|
||||||
.br
|
.br
|
||||||
-k, kelvin Set Kelvin as preferred temperature unit
|
-k, kelvin Set Kelvin as preferred temperature unit
|
||||||
.br
|
.br
|
||||||
-r, hostrecord Add a name to the DNS associated to an IPv4/IPv6 address
|
-r, hostrecord Add a name to the DNS associated to an
|
||||||
|
IPv4/IPv6 address
|
||||||
.br
|
.br
|
||||||
-e, email Set an administrative contact address for the Block Page
|
-e, email Set an administrative contact address for the
|
||||||
|
Block Page
|
||||||
.br
|
.br
|
||||||
-i, interface Specify dnsmasq's interface listening behavior
|
-i, interface Specify dnsmasq's interface listening behavior
|
||||||
.br
|
.br
|
||||||
-l, privacylevel <level> Set privacy level (0 = lowest, 3 = highest)
|
-l, privacylevel <level> Set privacy level
|
||||||
|
(0 = lowest, 3 = highest)
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fB-c, chronometer\fR [options]
|
\fB-c, chronometer\fR [options]
|
||||||
|
@ -181,7 +184,8 @@ Available commands and options:
|
||||||
.br
|
.br
|
||||||
on Enable the Pi-hole log at /var/log/pihole.log
|
on Enable the Pi-hole log at /var/log/pihole.log
|
||||||
.br
|
.br
|
||||||
off Disable and flush the Pi-hole log at /var/log/pihole.log
|
off Disable and flush the Pi-hole log at
|
||||||
|
/var/log/pihole.log
|
||||||
.br
|
.br
|
||||||
off noflush Disable the Pi-hole log at /var/log/pihole.log
|
off noflush Disable the Pi-hole log at /var/log/pihole.log
|
||||||
.br
|
.br
|
||||||
|
@ -204,7 +208,8 @@ Available commands and options:
|
||||||
.br
|
.br
|
||||||
-p, --pihole Only retrieve info regarding Pi-hole repository
|
-p, --pihole Only retrieve info regarding Pi-hole repository
|
||||||
.br
|
.br
|
||||||
-a, --admin Only retrieve info regarding AdminLTE repository
|
-a, --admin Only retrieve info regarding AdminLTE
|
||||||
|
repository
|
||||||
.br
|
.br
|
||||||
-f, --ftl Only retrieve info regarding FTL repository
|
-f, --ftl Only retrieve info regarding FTL repository
|
||||||
.br
|
.br
|
||||||
|
@ -214,7 +219,8 @@ Available commands and options:
|
||||||
.br
|
.br
|
||||||
-l, --latest Return the latest version
|
-l, --latest Return the latest version
|
||||||
.br
|
.br
|
||||||
--hash Return the Github hash from your local repositories
|
--hash Return the Github hash from your local
|
||||||
|
repositories
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBuninstall\fR
|
\fBuninstall\fR
|
||||||
|
@ -266,7 +272,8 @@ Available commands and options:
|
||||||
.br
|
.br
|
||||||
master Update subsystems to the latest stable release
|
master Update subsystems to the latest stable release
|
||||||
.br
|
.br
|
||||||
dev Update subsystems to the latest development release
|
dev Update subsystems to the latest development
|
||||||
|
release
|
||||||
.br
|
.br
|
||||||
branchname Update subsystems to the specified branchname
|
branchname Update subsystems to the specified branchname
|
||||||
.br
|
.br
|
||||||
|
@ -275,50 +282,74 @@ Available commands and options:
|
||||||
Some usage examples
|
Some usage examples
|
||||||
.br
|
.br
|
||||||
|
|
||||||
Whitelist/blacklist manipulation
|
Whitelist/blacklist manipulation
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBpihole -w iloveads.example.com\fR Add "iloveads.example.com" to whitelist
|
\fBpihole -w iloveads.example.com\fR
|
||||||
.br
|
.br
|
||||||
\fBpihole -b -d noads.example.com\fR Remove "noads.example.com" from blacklist
|
Adds "iloveads.example.com" to whitelist
|
||||||
.br
|
|
||||||
\fBpihole --wild example.com\fR Add example.com as a wildcard - would
|
|
||||||
block all subdomains of example.com, including example.com itself.
|
|
||||||
.br
|
|
||||||
\fBpihole --regex "ad.*\.example\.com$"\fR Add "ad.*\.example\.com$" to the regex
|
|
||||||
blacklist - would block all subdomains of example.com which start with "ad"
|
|
||||||
.br
|
.br
|
||||||
|
|
||||||
Changing the Web Interface password
|
\fBpihole -b -d noads.example.com\fR
|
||||||
|
.br
|
||||||
|
Removes "noads.example.com" from blacklist
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBpihole -a -p ExamplePassword\fR Change the password to "ExamplePassword"
|
\fBpihole --wild example.com\fR
|
||||||
|
.br
|
||||||
|
Adds example.com as a wildcard - would block all subdomains of
|
||||||
|
example.com, including example.com itself.
|
||||||
.br
|
.br
|
||||||
|
|
||||||
Updating lists from internet sources
|
\fBpihole --regex "ad.*\\.example\\.com$"\fR
|
||||||
|
.br
|
||||||
|
Adds "ad.*\\.example\\.com$" to the regex blacklist.
|
||||||
|
Would block all subdomains of example.com which start with "ad"
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBpihole -g\fR Update the list of ad-serving domains
|
Changing the Web Interface password
|
||||||
.br
|
.br
|
||||||
|
|
||||||
Displaying version information
|
\fBpihole -a -p ExamplePassword\fR
|
||||||
|
.br
|
||||||
|
Change the password to "ExamplePassword"
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBpihole -v -a -c\fR Display the current version of AdminLTE
|
Updating lists from internet sources
|
||||||
.br
|
.br
|
||||||
|
|
||||||
Temporarily disabling Pi-hole
|
\fBpihole -g\fR
|
||||||
|
.br
|
||||||
|
Update the list of ad-serving domains
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBpihole disable 5m\fR Disable Pi-hole functionality for five minutes
|
Displaying version information
|
||||||
.br
|
.br
|
||||||
|
|
||||||
Switching Pi-hole subsystem branches
|
\fBpihole -v -a -c\fR
|
||||||
|
.br
|
||||||
|
Display the current version of AdminLTE
|
||||||
.br
|
.br
|
||||||
|
|
||||||
\fBpihole checkout master\fR Switch to master branch
|
Temporarily disabling Pi-hole
|
||||||
.br
|
.br
|
||||||
\fBpihole checkout core dev\fR Switch to core development branch
|
|
||||||
|
\fBpihole disable 5m\fR
|
||||||
|
.br
|
||||||
|
Disable Pi-hole functionality for five minutes
|
||||||
|
.br
|
||||||
|
|
||||||
|
Switching Pi-hole subsystem branches
|
||||||
|
.br
|
||||||
|
|
||||||
|
\fBpihole checkout master\fR
|
||||||
|
.br
|
||||||
|
Switch to master branch
|
||||||
|
.br
|
||||||
|
|
||||||
|
\fBpihole checkout core dev\fR
|
||||||
|
.br
|
||||||
|
Switch to core development branch
|
||||||
.br
|
.br
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue