Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Warner <me@adamwarner.co.uk>2022-09-19 13:00:09 +0300
committerGitHub <noreply@github.com>2022-09-19 13:00:09 +0300
commitd88629e23fcfbf52b97bf14800bfc510b0284be6 (patch)
tree2c071be5119a0fe442dead36cf129b36b303f4a0
parentfe8b0e98ab64ae47a6c31eea67cede3cf502d831 (diff)
parentd581401f4ef6c34d727cae6854f56547b78e5b76 (diff)
v5.12.2 (#4922)v5.12.2
-rw-r--r--.github/workflows/stale.yml2
-rw-r--r--.github/workflows/test.yml4
-rwxr-xr-xadvanced/Scripts/piholeDebug.sh26
-rwxr-xr-xadvanced/Scripts/updatecheck.sh5
-rw-r--r--advanced/lighttpd.conf.debian2
-rw-r--r--advanced/lighttpd.conf.fedora2
-rw-r--r--test/setup.py1
-rw-r--r--test/tox.centos_8.ini2
-rw-r--r--test/tox.debian_10.ini2
-rw-r--r--test/tox.debian_11.ini2
-rw-r--r--test/tox.fedora_34.ini2
-rw-r--r--test/tox.ubuntu_20.ini2
-rw-r--r--test/tox.ubuntu_22.ini2
13 files changed, 28 insertions, 26 deletions
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index c0f64bb4..6b70a153 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -13,7 +13,7 @@ jobs:
issues: write
steps:
- - uses: actions/stale@v5.1.1
+ - uses: actions/stale@v5.2.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 318cfcc4..7725ecc3 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -51,10 +51,10 @@ jobs:
name: Checkout repository
uses: actions/checkout@v3.0.2
-
- name: Set up Python 3.8
+ name: Set up Python 3.10
uses: actions/setup-python@v4.2.0
with:
- python-version: 3.8
+ python-version: '3.10'
-
name: Install dependencies
run: pip install -r test/requirements.txt
diff --git a/advanced/Scripts/piholeDebug.sh b/advanced/Scripts/piholeDebug.sh
index 6543efbb..ab16d7ff 100755
--- a/advanced/Scripts/piholeDebug.sh
+++ b/advanced/Scripts/piholeDebug.sh
@@ -41,6 +41,9 @@ else
#OVER="\r\033[K"
fi
+# shellcheck disable=SC1091
+. /etc/pihole/versions
+
OBFUSCATED_PLACEHOLDER="<DOMAIN OBFUSCATED>"
# FAQ URLs for use in showing the debug log
@@ -50,7 +53,6 @@ FAQ_HARDWARE_REQUIREMENTS="${COL_CYAN}https://docs.pi-hole.net/main/prerequisite
FAQ_HARDWARE_REQUIREMENTS_PORTS="${COL_CYAN}https://docs.pi-hole.net/main/prerequisites/#ports${COL_NC}"
FAQ_HARDWARE_REQUIREMENTS_FIREWALLD="${COL_CYAN}https://docs.pi-hole.net/main/prerequisites/#firewalld${COL_NC}"
FAQ_GATEWAY="${COL_CYAN}https://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546${COL_NC}"
-FAQ_ULA="${COL_CYAN}https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127${COL_NC}"
FAQ_FTL_COMPATIBILITY="${COL_CYAN}https://github.com/pi-hole/FTL#compatibility-list${COL_NC}"
FAQ_BAD_ADDRESS="${COL_CYAN}https://discourse.pi-hole.net/t/why-do-i-see-bad-address-at-in-pihole-log/3972${COL_NC}"
@@ -465,8 +467,8 @@ diagnose_operating_system() {
# Display the current test that is running
echo_current_diagnostic "Operating system"
- # If the PIHOLE_DOCKER_TAG variable is set, include this information in the debug output
- [ -n "${PIHOLE_DOCKER_TAG}" ] && log_write "${INFO} Pi-hole Docker Container: ${PIHOLE_DOCKER_TAG}"
+ # If DOCKER_VERSION is set (Sourced from /etc/pihole/versions at start of script), include this information in the debug output
+ [ -n "${DOCKER_VERSION}" ] && log_write "${INFO} Pi-hole Docker Container: ${DOCKER_VERSION}"
# If there is a /etc/*release file, it's probably a supported operating system, so we can
if ls /etc/*release 1> /dev/null 2>&1; then
@@ -802,7 +804,7 @@ check_networking() {
ping_gateway "6"
# Skip the following check if installed in docker container. Unpriv'ed containers do not have access to the information required
# to resolve the service name listening - and the container should not start if there was a port conflict anyway
- [ -z "${PIHOLE_DOCKER_TAG}" ] && check_required_ports
+ [ -z "${DOCKER_VERSION}" ] && check_required_ports
}
check_x_headers() {
@@ -812,7 +814,7 @@ check_x_headers() {
# Similarly, it will show "X-Pi-hole: The Pi-hole Web interface is working!" if you view the header returned
# when accessing the dashboard (i.e curl -I pi.hole/admin/)
# server is operating correctly
- echo_current_diagnostic "Dashboard and block page"
+ echo_current_diagnostic "Dashboard headers"
# Use curl -I to get the header and parse out just the X-Pi-hole one
local full_curl_output_dashboard
local dashboard
@@ -822,7 +824,7 @@ check_x_headers() {
local dashboard_working
dashboard_working="X-Pi-hole: The Pi-hole Web interface is working!"
- # Same logic applies to the dashboard as above, if the X-Header matches what a working system should have,
+ # If the X-Header matches what a working system should have,
if [[ $dashboard == "$dashboard_working" ]]; then
# then we can show a success
log_write "$TICK Web interface X-Header: ${COL_GREEN}${dashboard}${COL_NC}"
@@ -1274,7 +1276,7 @@ analyze_gravity_list() {
# if users want to check database integrity
if [[ "${CHECK_DATABASE}" = true ]]; then
- database_integrity_check "${PIHOLE_FTL_DB_FILE}"
+ database_integrity_check "${PIHOLE_GRAVITY_DB_FILE}"
fi
show_db_entries "Info table" "SELECT property,value FROM info" "20 40"
@@ -1337,16 +1339,6 @@ database_integrity_check(){
}
-check_database_integrity() {
- echo_current_diagnostic "Gravity Database"
- database_permissions "${PIHOLE_GRAVITY_DB_FILE}"
- database_integrity_check "${PIHOLE_GRAVITY_DB_FILE}"
-
- echo_current_diagnostic "Pi-hole FTL Query Database"
- database_permissions "${PIHOLE_FTL_DB_FILE}"
- database_integrity_check "${PIHOLE_FTL_DB_FILE}"
-}
-
# Show a text spinner during a long process run
spinner(){
# Show the spinner only if there is a tty
diff --git a/advanced/Scripts/updatecheck.sh b/advanced/Scripts/updatecheck.sh
index 37211cc6..b1e111ae 100755
--- a/advanced/Scripts/updatecheck.sh
+++ b/advanced/Scripts/updatecheck.sh
@@ -84,4 +84,9 @@ else
FTL_VERSION="$(pihole-FTL version)"
addOrEditKeyValPair "${VERSION_FILE}" "FTL_VERSION" "${FTL_VERSION}"
+ # PIHOLE_DOCKER_TAG is set as env variable only on docker installations
+ if [[ "${PIHOLE_DOCKER_TAG}" ]]; then
+ addOrEditKeyValPair "${VERSION_FILE}" "DOCKER_VERSION" "${PIHOLE_DOCKER_TAG}"
+ fi
+
fi
diff --git a/advanced/lighttpd.conf.debian b/advanced/lighttpd.conf.debian
index 4545bb2e..21e48d6c 100644
--- a/advanced/lighttpd.conf.debian
+++ b/advanced/lighttpd.conf.debian
@@ -32,6 +32,8 @@ server.errorlog = "/var/log/lighttpd/error-pihole.log"
server.pid-file = "/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
+# For lighttpd version 1.4.46 or above, the port can be overwritten in `/etc/lighttpd/external.conf` using the := operator
+# e.g. server.port := 8000
server.port = 80
accesslog.filename = "/var/log/lighttpd/access-pihole.log"
accesslog.format = "%{%s}t|%V|%r|%s|%b"
diff --git a/advanced/lighttpd.conf.fedora b/advanced/lighttpd.conf.fedora
index 12930302..3da62839 100644
--- a/advanced/lighttpd.conf.fedora
+++ b/advanced/lighttpd.conf.fedora
@@ -33,6 +33,8 @@ server.errorlog = "/var/log/lighttpd/error-pihole.log"
server.pid-file = "/run/lighttpd.pid"
server.username = "lighttpd"
server.groupname = "lighttpd"
+# For lighttpd version 1.4.46 or above, the port can be overwritten in `/etc/lighttpd/external.conf` using the := operator
+# e.g. server.port := 8000
server.port = 80
accesslog.filename = "/var/log/lighttpd/access-pihole.log"
accesslog.format = "%{%s}t|%V|%r|%s|%b"
diff --git a/test/setup.py b/test/setup.py
index 0e393bc1..9f3b4b48 100644
--- a/test/setup.py
+++ b/test/setup.py
@@ -1,6 +1,7 @@
from setuptools import setup
setup(
+ py_modules=[],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
)
diff --git a/test/tox.centos_8.ini b/test/tox.centos_8.ini
index e94c2433..71b147c7 100644
--- a/test/tox.centos_8.ini
+++ b/test/tox.centos_8.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py38
+envlist = py3
[testenv]
whitelist_externals = docker
diff --git a/test/tox.debian_10.ini b/test/tox.debian_10.ini
index 3b182cdc..d21620dc 100644
--- a/test/tox.debian_10.ini
+++ b/test/tox.debian_10.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py38
+envlist = py3
[testenv]
whitelist_externals = docker
diff --git a/test/tox.debian_11.ini b/test/tox.debian_11.ini
index c7e41a91..f2546922 100644
--- a/test/tox.debian_11.ini
+++ b/test/tox.debian_11.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py38
+envlist = py3
[testenv]
whitelist_externals = docker
diff --git a/test/tox.fedora_34.ini b/test/tox.fedora_34.ini
index 26856984..f4115a66 100644
--- a/test/tox.fedora_34.ini
+++ b/test/tox.fedora_34.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py38
+envlist = py3
[testenv]
whitelist_externals = docker
diff --git a/test/tox.ubuntu_20.ini b/test/tox.ubuntu_20.ini
index fb3d20d7..80fb7485 100644
--- a/test/tox.ubuntu_20.ini
+++ b/test/tox.ubuntu_20.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py38
+envlist = py3
[testenv]
whitelist_externals = docker
diff --git a/test/tox.ubuntu_22.ini b/test/tox.ubuntu_22.ini
index 2a3285aa..41007a9c 100644
--- a/test/tox.ubuntu_22.ini
+++ b/test/tox.ubuntu_22.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py38
+envlist = py3
[testenv]
whitelist_externals = docker