Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development v6 #5100

Draft
wants to merge 359 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
359 commits
Select commit Hold shift + click to select a range
dc73ace
Bump pytest from 7.4.0 to 7.4.2 in /test
dependabot[bot] Sep 9, 2023
0ff736f
Bump pytest from 7.4.0 to 7.4.2 in /test (#5386)
yubiuser Sep 9, 2023
babe7a7
Bump actions/checkout from 3.6.0 to 4.0.0 (#5388)
yubiuser Sep 9, 2023
20a3593
Remove fake user agent when downloading adlist (#5367)
yubiuser Sep 10, 2023
f19a56c
Merge branch 'development-v6' into new/antigravity
DL6ER Sep 11, 2023
df92b8a
Add missing creation of view vw_antigravity as well as schema change …
DL6ER Sep 12, 2023
ea23c83
Move antigravity-related changed to gravits database migration step 1…
DL6ER Sep 16, 2023
ec9d846
Bump actions/checkout from 4.0.0 to 4.1.0
dependabot[bot] Sep 23, 2023
fc72902
Bump actions/checkout from 4.0.0 to 4.1.0 (#5397)
yubiuser Sep 23, 2023
0bf33ed
Ignore ABP style entries in debug log dig test (#5382)
PromoFaux Sep 26, 2023
43ddfcf
Ensure pihole-FTL can write to all files in /etc/pihole, /run/pihole …
DL6ER Sep 26, 2023
69a264a
Add antigravity support to gravity (#5330)
PromoFaux Sep 29, 2023
aba41b4
Some verbiage change to outputs
PromoFaux Oct 4, 2023
885b626
Some unrelated spelling mistakes that spellcheck is grumbling about
PromoFaux Oct 4, 2023
7b341cc
Some verbiage change to outputs (plus a couple of comments) (#5406)
PromoFaux Oct 4, 2023
7054775
Bump actions/setup-python from 4.7.0 to 4.7.1
dependabot[bot] Oct 7, 2023
e87d03a
Bump actions/setup-python from 4.7.0 to 4.7.1 (#5413)
yubiuser Oct 7, 2023
044e856
Disable checkout function for (official) docker containers
PromoFaux Oct 8, 2023
7886dc0
adminlte->web
PromoFaux Oct 8, 2023
9622265
Disable checkout function for (official) docker containers (#5416)
PromoFaux Oct 8, 2023
96640ea
Update references to web repo (#5417)
PromoFaux Oct 8, 2023
6001fe3
Set owner of gravity output files to pihole
yubiuser Oct 8, 2023
679aab1
Run gravity as user pihole
yubiuser Oct 9, 2023
2286384
Set owner/group of /etc/pihole to pihole
yubiuser Oct 9, 2023
2061f3a
Set owner/permissions at the right place
yubiuser Oct 9, 2023
46ff257
Remove Chronometer
yubiuser Oct 12, 2023
188b2b8
PADD is fine, really!
yubiuser Oct 12, 2023
40c7528
Allow pihole to access subdirs in /etc/pihole
yubiuser Oct 13, 2023
6ae713e
Allow pihole to access subdirs in /etc/pihole (#5427)
yubiuser Oct 13, 2023
e374950
Merge branch 'development-v6' into query_list_v6
yubiuser Oct 13, 2023
f7ba059
Query directly and authenticate only if required
yubiuser Oct 14, 2023
ec83d6b
No help for gone functions
yubiuser Oct 14, 2023
539f379
Remove Chronometer (#5423)
yubiuser Oct 14, 2023
2841a33
Set owner of gravity output files to pihole (#5419)
yubiuser Oct 14, 2023
2005d04
Exact search is the new default
yubiuser Oct 14, 2023
123ba1f
Remove temp dir created when downloading FTL
yubiuser Oct 15, 2023
aaa9acc
Update query.sh to use FTL's API instead of directly interacting with…
yubiuser Oct 16, 2023
27522fb
Add a final message to gravity
rdwebdesign Oct 16, 2023
ed0dfa8
Add a final message to gravity (#5441)
DL6ER Oct 16, 2023
2c7fa4a
Avoid printing getFTLConfigValue return in statusFunc()
rdwebdesign Oct 18, 2023
2deadb2
Avoid printing getFTLConfigValue return in statusFunc() (#5442)
yubiuser Oct 18, 2023
d77dbf7
Logrotate config file needs to be owned by root
yubiuser Oct 18, 2023
33a4139
Logrotate config file needs to be owned by root (#5444)
yubiuser Oct 18, 2023
c571d8d
Drop support for ancient ARMv4 and ARMv5, the Debian binaries turn ou…
DL6ER Oct 19, 2023
6cf39d9
Remove temp dir created when downloading FTL (#5429)
yubiuser Oct 20, 2023
79ebbac
Bump actions/checkout from 4.1.0 to 4.1.1
dependabot[bot] Oct 21, 2023
19e081b
Bump actions/checkout from 4.1.0 to 4.1.1 (#5448)
yubiuser Oct 21, 2023
8bcd1d4
*BREAKING* Drop support for ancient ARMv4 and ARMv5 (#5445)
DL6ER Oct 21, 2023
ca7836b
Remove now obsolete GLIBC version check
DL6ER Oct 21, 2023
45687d6
Fix the binary detection for ARMv6 and simplify the router overall
DL6ER Oct 21, 2023
30bfc7c
Add binutils tot he OS check dependencies as we need it to check if t…
DL6ER Oct 21, 2023
38ecc16
Further simplify the ARMv6 test
DL6ER Oct 21, 2023
369ccf1
Move FTL binary availability check after the supported OS check
DL6ER Oct 21, 2023
7523c49
Swapping the databases must be the last step before the cleanup. Othe…
DL6ER Oct 22, 2023
842a9d7
Address review comments
DL6ER Oct 22, 2023
91c5967
Fix gravity swapping (#5455)
DL6ER Oct 22, 2023
a44e51b
Fix and simplify binary download (#5451)
DL6ER Oct 22, 2023
fd8fdd3
Use suffixed temp file
yubiuser Oct 23, 2023
00d7e99
setupVars.conf and pihole-FTL.conf are no more - use pihole.toml instead
DL6ER Oct 28, 2023
ccd8c47
check_x_headers is no more
DL6ER Oct 28, 2023
dcc7e96
Remove detection of addresses of PIHOLE_INTERFACE as it is gone, too
DL6ER Oct 28, 2023
c86e7b3
Generalize CPU check to a short hardware information output
DL6ER Oct 28, 2023
635b4e9
Add NOERROR/NXDOMAIN support in the DNS resolution test
DL6ER Oct 28, 2023
15be8ee
Remove lighttpd config test
DL6ER Oct 28, 2023
d377cfb
Extract the first entry in the answer section from dig's output, repl…
DL6ER Oct 28, 2023
2e9e579
Bump pytest from 7.4.2 to 7.4.3 in /test
dependabot[bot] Oct 28, 2023
ed5d794
Bump pytest from 7.4.2 to 7.4.3 in /test (#5462)
yubiuser Oct 28, 2023
6292e65
When setting a blank password, use `webserver.api.password` instead o…
PromoFaux Oct 28, 2023
ab3b6df
No need to >/dev/null because setFTLConfigValue already does this
PromoFaux Oct 28, 2023
4c4a2ad
Use suffixed temp file (#5457)
PromoFaux Oct 28, 2023
0a193f9
Tweak Pi-hole's debug facility for v6 (#5461)
DL6ER Oct 29, 2023
480a8c8
Remove idn2 as punycode conversion is handled by FTL
yubiuser Oct 31, 2023
ce21b4c
Remove idn2 as punycode conversion is handled by FTL (#5468)
yubiuser Nov 1, 2023
ced1c5d
Start counting at postion 1
yubiuser Dec 17, 2022
4c129af
Start counting at postion 1 (#5470)
yubiuser Nov 2, 2023
758ace5
Check for valid OS via IPv4 and IPv6 (#5305)
yubiuser Nov 4, 2023
395110f
When setting a blank password, use `webserver.api.password` instead o…
DL6ER Nov 4, 2023
bc96d3b
Tweak help text of pihole setpassword
yubiuser Nov 5, 2023
2746ee3
Tweak help text of pihole setpassword (#5476)
yubiuser Nov 5, 2023
72c9721
Remove left-over parts of setupVars processing and only include pihol…
DL6ER Nov 6, 2023
0b41311
Migrate Pi-hole created files out of /etc/dnsmasq.d into a pihole own…
DL6ER Nov 6, 2023
834e52f
pihole -d: Include pihole.toml only once (#5478)
DL6ER Nov 6, 2023
de6e617
Remove local.list and openVPN traces
yubiuser Nov 6, 2023
e3c6f16
Apply suggestions from code review
DL6ER Nov 7, 2023
e888408
Apply suggestions from code review
DL6ER Nov 7, 2023
766cb26
Drop Fedora 36 and add Fedora 39 to the test suite
yubiuser Nov 7, 2023
f65b126
Move custom.list to /hosts/custom.list
yubiuser Nov 13, 2023
1da36bd
Move custom.list to /hosts/custom.list (#5488)
yubiuser Nov 13, 2023
86aa6b1
Improve v6 debug log and remove leftovers
yubiuser Nov 6, 2023
d854eb1
Add lshw to Pi-hole deps
yubiuser Nov 7, 2023
d3813c4
Update check for required ports
yubiuser Nov 8, 2023
e7c89ce
No need to pass a default value to get_ftl_conf_value()
yubiuser Nov 12, 2023
54ab71d
Don't use hardcoded ports to check for
yubiuser Nov 12, 2023
b61e8be
Address reviewer's comment
yubiuser Nov 12, 2023
af9b8df
Improve v6 debug log and remove leftovers (#5481)
yubiuser Nov 13, 2023
ab09233
Bump pytest-testinfra from 9.0.0 to 10.0.0 in /test
dependabot[bot] Nov 18, 2023
2b79abb
Bump pytest-testinfra from 9.0.0 to 10.0.0 in /test (#5491)
yubiuser Nov 18, 2023
f4b6706
Bump pytest-xdist from 3.3.1 to 3.4.0 in /test
dependabot[bot] Nov 18, 2023
2338c9e
Bump pytest-xdist from 3.3.1 to 3.4.0 in /test (#5490)
yubiuser Nov 18, 2023
19d3489
gravity_DownloadBlocklistFromUrl needs ${domain} but it was declared …
DL6ER Nov 22, 2023
f16cf71
${PIHOLE_DNS_1} is gone, use the first server from pihole-FTL --confi…
DL6ER Nov 22, 2023
4efcdf1
Add missing double quotes to prevent globbing and word splitting
DL6ER Nov 22, 2023
df7633b
Add missing value for ${gravityDBfile_default}
DL6ER Nov 22, 2023
cc333f7
Check if this domain is blocked by Pi-hole but only if the domain is …
DL6ER Nov 22, 2023
c785667
Trim leading and trailing spaces and tabs in upstream servers (if any)
DL6ER Nov 23, 2023
a6565bf
Support special webserver.port ports ending in "s" (secure) and "r" (…
DL6ER Nov 23, 2023
1276242
Bump pytest-xdist from 3.4.0 to 3.5.0 in /test
dependabot[bot] Nov 25, 2023
974fea5
Iterate over ports, skip redirected ports
DL6ER Nov 27, 2023
6016131
Ensure we also check the last port
DL6ER Nov 28, 2023
62f9694
Bump pytest-xdist from 3.4.0 to 3.5.0 in /test (#5500)
yubiuser Nov 30, 2023
96bf078
Use CHAOS TXT local.api.txt instead of trying to parse pihole-FTL --c…
DL6ER Dec 1, 2023
29d010d
Use files.gravity_tmp as temporary directory for the intermediate lists
DL6ER Dec 1, 2023
f5fe550
Bump tox from 4.11.3 to 4.11.4 in /test
dependabot[bot] Dec 2, 2023
e364349
Bump tox from 4.11.3 to 4.11.4 in /test (#5507)
yubiuser Dec 2, 2023
32a741b
We do not follow 308 but FTL also doesn't suggest it
DL6ER Dec 2, 2023
7f7ec13
Support special webserver.port ports ending in "s" (secure) and "r" (…
DL6ER Dec 4, 2023
2681835
Treat FTL return data as strings
yubiuser Dec 5, 2023
159817b
Use development-v6 as ftl branch for binary test
yubiuser Dec 6, 2023
03637e9
Use files.gravity_tmp as temporary directory for the intermediate lis…
DL6ER Dec 9, 2023
2529fbe
Treat FTL return data as strings (#5509)
yubiuser Dec 9, 2023
8a71e42
Bump actions/stale from 8.0.0 to 9.0.0
dependabot[bot] Dec 9, 2023
e49d7fa
Bump actions/setup-python from 4.7.1 to 5.0.0
dependabot[bot] Dec 9, 2023
0b23b9b
Bump actions/stale from 8.0.0 to 9.0.0 (#5511)
yubiuser Dec 9, 2023
750fb66
Bump actions/setup-python from 4.7.1 to 5.0.0 (#5510)
yubiuser Dec 9, 2023
a87d1bb
Remove pihole.sudo
yubiuser Dec 9, 2023
54186a6
Remove test for sudo file as well
yubiuser Dec 9, 2023
274d4c2
Add bash-completion to PIHOLE_DEPS
yubiuser Dec 9, 2023
fe72993
Update bash_completion
yubiuser Dec 9, 2023
6d02d40
Rename option --admin to --web in version function
yubiuser Dec 9, 2023
ac86ae1
Bash completion (#5516)
yubiuser Dec 9, 2023
c90a27c
Add "-ni" to all sqlite3 invocations
DL6ER Dec 9, 2023
a6c0d27
Remove obsolete sudo file (#5514)
yubiuser Dec 9, 2023
fe4d934
Simplify pihole -v
yubiuser Dec 9, 2023
b333e30
Remove version options from bash completion
yubiuser Dec 9, 2023
c3c31a1
Print version details automatically if not on master
yubiuser Dec 9, 2023
13676c4
Simplify pihole -v (#5517)
yubiuser Dec 9, 2023
719ce80
Add "-ni" to all sqlite3 invocations (#5518)
DL6ER Dec 10, 2023
0cfcdc4
Bump github/codeql-action from 2 to 3
dependabot[bot] Dec 16, 2023
6e8029f
Bump github/codeql-action from 2 to 3 (#5521)
yubiuser Dec 16, 2023
0066c6f
Make IDs of anti-/gravity lists available in vw_(anti)gravity
DL6ER Dec 25, 2023
8e8c7ec
Run gravity upgrade on checkout/update
DL6ER Dec 25, 2023
1b87ec0
Exit early if the database does not exist (e.g. in some CI tests)
DL6ER Dec 25, 2023
0c63635
Append the interface to the gateway address if it is a link-local add…
DL6ER Dec 25, 2023
0034013
Extend %iface logic to the dig test. Also fix intentation in this fun…
DL6ER Dec 26, 2023
d282831
Modify DELETE triggers to delete BEFORE instead of AFTER to prevent p…
DL6ER Dec 28, 2023
9c35788
Bump pytest from 7.4.3 to 7.4.4 in /test
dependabot[bot] Jan 6, 2024
e14792b
Bump pytest from 7.4.3 to 7.4.4 in /test (#5535)
yubiuser Jan 6, 2024
220c067
As we do in other tests, specify `development-v6` branch of FTL is do…
PromoFaux Jan 7, 2024
df9c60e
Reduce code duplication in FTL arch detect tests.
PromoFaux Jan 8, 2024
e781311
pihole -d: Fix gateway ping if it is a LL address (#5527)
DL6ER Jan 9, 2024
b756262
Fix failing tests in development-v6 branch (#5542)
PromoFaux Jan 10, 2024
debab10
Use 204
yubiuser Jan 7, 2024
b662fd6
Bump tox from 4.11.4 to 4.12.0 in /test
dependabot[bot] Jan 13, 2024
ebb0db0
Bump tox from 4.11.4 to 4.12.0 in /test (#5548)
yubiuser Jan 13, 2024
47f06df
Do not store remote version in versions file if on custom branch. It'…
DL6ER Jan 15, 2024
d6dbb40
Do not store remote version in versions file if on custom branch (#5549)
DL6ER Jan 15, 2024
60de50b
Bump tox from 4.12.0 to 4.12.1 in /test
dependabot[bot] Jan 20, 2024
e1c41fe
Bump tox from 4.12.0 to 4.12.1 in /test (#5556)
yubiuser Jan 20, 2024
cc8f9fe
Use 204 return code for deleted sessions (#5541)
yubiuser Jan 27, 2024
935a4ce
Also remove Fedora 37
yubiuser Jan 28, 2024
9a3affd
Drop Fedora 36 and add Fedora 39 to the test suite (#5482)
PromoFaux Jan 29, 2024
07b448d
Also check for IPv6 address for configured DNS servers
DL6ER Jan 26, 2024
31a8f15
Add checking for availability of ftl.pi-hole.net when using FTL from …
DL6ER Jan 30, 2024
92e741f
Test ftl.pi-hole.net availability (#5563)
DL6ER Feb 2, 2024
6e946f7
Bump pytest from 7.4.4 to 8.0.0 in /test
dependabot[bot] Feb 3, 2024
499ba97
Bump pytest from 7.4.4 to 8.0.0 in /test (#5567)
yubiuser Feb 4, 2024
f193edd
Merge branch 'development' into development-v6-merge-development (res…
PromoFaux Feb 9, 2024
8f36fdf
Make IDs of anti-/gravity lists available in vw_(anti)gravity (#5526)
DL6ER Feb 9, 2024
aca7b31
Remove local.list and openVPN traces (#5480)
yubiuser Feb 10, 2024
8b3469c
Merge branch 'development-v6' into development-v6-merge-development
DL6ER Feb 11, 2024
b5ab8ac
Change UNIQUEness constraint from (address) to (address, type) in the…
DL6ER Feb 11, 2024
bb095bb
Merge development into development-v6 (with merge conflicts resolved)…
PromoFaux Feb 11, 2024
bcb712b
Fix accidential double -ni from one of the last PRs
DL6ER Feb 11, 2024
c771739
Fix gravity (#5573)
DL6ER Feb 12, 2024
1a59b40
Merge branch 'development-v6' into tweak/allow_adlist_dups
DL6ER Feb 13, 2024
75fadb9
Adlists need to be grouped by both address and type to differentiate …
DL6ER Feb 13, 2024
9ff4304
Add list type in pihole -q
DL6ER Feb 13, 2024
b322f1e
Bump tox from 4.12.1 to 4.13.0 in /test
dependabot[bot] Feb 17, 2024
ed1a627
Merge branch 'development-v6' into new/migrate_dnsmasq_conf
DL6ER Feb 19, 2024
f5e6364
Bump tox from 4.12.1 to 4.13.0 in /test (#5584)
yubiuser Feb 24, 2024
3ed29f4
Bump pytest from 8.0.0 to 8.0.1 in /test
dependabot[bot] Feb 24, 2024
48c1d5a
Bump pytest from 8.0.0 to 8.0.1 in /test (#5582)
yubiuser Feb 24, 2024
07e6c0d
Bump pytest-testinfra from 10.0.0 to 10.1.0 in /test
dependabot[bot] Feb 24, 2024
760f903
Bump pytest-testinfra from 10.0.0 to 10.1.0 in /test (#5583)
yubiuser Feb 24, 2024
fd1372d
Bump pytest from 8.0.1 to 8.0.2 in /test
dependabot[bot] Mar 2, 2024
6bb7d10
Bump pytest from 8.0.1 to 8.0.2 in /test (#5597)
yubiuser Mar 2, 2024
0635ea7
Allow adlist duplicates (#5572)
DL6ER Mar 2, 2024
8fb3a59
Merge branch 'development-v6' into fix/gravity_domain
DL6ER Mar 9, 2024
bfd8b57
Bump tox from 4.13.0 to 4.14.1 in /test
dependabot[bot] Mar 9, 2024
cb4f6d4
Bump tox from 4.13.0 to 4.14.1 in /test (#5600)
yubiuser Mar 9, 2024
c02401b
Highlight "### CHANGED" strings in the debug log of pihole.toml
DL6ER Mar 9, 2024
dedaf54
Highlight "### CHANGED" strings in the debug log of pihole.toml (#5601)
DL6ER Mar 9, 2024
2fd0de4
Verify that we actually downloaded a valid checksum before comparing …
DL6ER Mar 10, 2024
82a83c4
Reduce code-duplication
DL6ER Mar 10, 2024
71b1729
Verify remote FTL checksum (#5603)
DL6ER Mar 11, 2024
206cf9c
Fix edge-case where an adlist domain is blocked (#5571)
DL6ER Mar 16, 2024
58a1e85
Bump actions/checkout from 4.1.1 to 4.1.2
dependabot[bot] Mar 16, 2024
472602f
Bump tox from 4.14.1 to 4.14.2 in /test
dependabot[bot] Mar 23, 2024
fcb98d7
Bump tox from 4.14.1 to 4.14.2 in /test (#5612)
PromoFaux Mar 27, 2024
9f9e5df
Bump pytest from 8.0.2 to 8.1.1 in /test
dependabot[bot] Mar 27, 2024
398f90f
Non-matching checksums are not always corruption. Actually, they will…
DL6ER Mar 28, 2024
b595b3b
Port most recent changes of PRs #5615, #5618 amd #5620 to v6
DL6ER Mar 28, 2024
c7d6029
Improve changed binary message during update process (#5621)
DL6ER Mar 28, 2024
67ddb64
Bump eps1lon/actions-label-merge-conflict from 2.1.0 to 3.0.0
dependabot[bot] Mar 30, 2024
91e0d66
Code style: Use explicit form of CLI arguments
DL6ER Mar 30, 2024
80db526
Only use local files (file://) when they have explicit permissions a+…
DL6ER Mar 30, 2024
db07cc9
Bump pytest from 8.0.2 to 8.1.1 in /test (#5605)
PromoFaux Apr 1, 2024
48a4693
Bump actions/checkout from 4.1.1 to 4.1.2 (#5606)
PromoFaux Apr 1, 2024
f01362c
Bump actions/setup-python from 5.0.0 to 5.1.0
dependabot[bot] Apr 1, 2024
5391513
Bump actions/setup-python from 5.0.0 to 5.1.0 (#5624)
PromoFaux Apr 1, 2024
32ab5aa
Bump eps1lon/actions-label-merge-conflict from 2.1.0 to 3.0.0 (#5625)
PromoFaux Apr 1, 2024
5d77c2b
Bump actions/checkout from 4.1.2 to 4.1.3
dependabot[bot] Apr 20, 2024
91d95e2
Bump actions/checkout from 4.1.3 to 4.1.4
dependabot[bot] Apr 27, 2024
09ce000
Bump tox from 4.14.2 to 4.15.0 in /test
dependabot[bot] Apr 27, 2024
2955737
Bump actions/checkout from 4.1.3 to 4.1.4 (#5637)
yubiuser Apr 27, 2024
4474268
Bump tox from 4.14.2 to 4.15.0 in /test (#5638)
yubiuser Apr 27, 2024
78c755b
Bump pytest from 8.1.1 to 8.1.2 in /test
dependabot[bot] Apr 27, 2024
448b1f4
Bump pytest from 8.1.1 to 8.1.2 in /test (#5639)
yubiuser Apr 27, 2024
bf0c3c0
Bump pytest from 8.1.2 to 8.2.0 in /test
dependabot[bot] May 4, 2024
7ec20d8
Bump pytest from 8.1.2 to 8.2.0 in /test (#5645)
yubiuser May 4, 2024
24ade13
Bump pytest-xdist from 3.5.0 to 3.6.1 in /test
dependabot[bot] May 4, 2024
6ce747c
Bump pytest-xdist from 3.5.0 to 3.6.1 in /test (#5646)
yubiuser May 4, 2024
200a82a
Merge development into development-v6
PromoFaux May 8, 2024
cd30772
Add Ubuntu 24.04 and Fedora 40, remove Fedora 38
yubiuser May 11, 2024
f4c9278
Bump eps1lon/actions-label-merge-conflict from 3.0.0 to 3.0.1
dependabot[bot] May 11, 2024
3ad90c1
Bump actions/checkout from 4.1.4 to 4.1.5
dependabot[bot] May 11, 2024
8141fdd
Bump eps1lon/actions-label-merge-conflict from 3.0.0 to 3.0.1 (#5653)
yubiuser May 11, 2024
8886232
Bump actions/checkout from 4.1.4 to 4.1.5 (#5654)
yubiuser May 11, 2024
3abd2c0
Also check for IPv6 address for configured DNS servers (#5560)
DL6ER May 12, 2024
7bf97cf
Merge branch 'development-v6' into new/migrate_dnsmasq_conf
DL6ER May 12, 2024
dd2c1c6
Migrate dnsmasq config files (#5479)
DL6ER May 12, 2024
5270336
Bump actions/checkout from 4.1.5 to 4.1.6
dependabot[bot] May 18, 2024
250a44c
Bump actions/checkout from 4.1.5 to 4.1.6 (#5662)
yubiuser May 22, 2024
d30a761
Bump pytest from 8.2.0 to 8.2.1 in /test
dependabot[bot] May 25, 2024
8a92486
Bump pytest from 8.2.0 to 8.2.1 in /test (#5666)
yubiuser May 25, 2024
7b19b65
Fix version check for release Docker images
jacklul May 26, 2024
4add164
Bump eps1lon/actions-label-merge-conflict from 3.0.1 to 3.0.2
dependabot[bot] Jun 1, 2024
628e1bb
Bump pytest-testinfra from 10.1.0 to 10.1.1 in /test
dependabot[bot] Jun 1, 2024
f6a3b02
Bump eps1lon/actions-label-merge-conflict from 3.0.1 to 3.0.2 (#5670)
yubiuser Jun 1, 2024
159be01
Bump pytest-testinfra from 10.1.0 to 10.1.1 in /test (#5671)
yubiuser Jun 1, 2024
e232361
Add CAP_SYS_TIME to FTL's ambient capabilities
DL6ER Jun 7, 2024
dc5a7c4
Add CAP_SYS_TIME to FTL's ambient capabilities (#5676)
DL6ER Jun 8, 2024
2fdb655
Bump tox from 4.15.0 to 4.15.1 in /test
dependabot[bot] Jun 8, 2024
c1d6bcb
Bump tox from 4.15.0 to 4.15.1 in /test (#5678)
yubiuser Jun 8, 2024
0742c01
Bump pytest from 8.2.1 to 8.2.2 in /test
dependabot[bot] Jun 8, 2024
cfc0d07
Remove CentOS8 from test suite
yubiuser Jun 8, 2024
4a1dd7f
Bump pytest from 8.2.1 to 8.2.2 in /test (#5679)
yubiuser Jun 8, 2024
81e628a
Remove CentOS8 from test suite (#5682)
yubiuser Jun 8, 2024
5d2cb55
Bump actions/checkout from 4.1.6 to 4.1.7
dependabot[bot] Jun 15, 2024
ca9eaf9
Bump actions/checkout from 4.1.6 to 4.1.7 (#5687)
yubiuser Jun 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
# If FAIL is 1 then we fail.
[[ $FAIL == 1 ]] && exit 1 || echo "Scripts are executable!"

- name: Run shellcheck
uses: ludeeus/action-shellcheck@master
with:
check_together: 'yes'
format: tty
severity: error

- name: Spell-Checking
uses: codespell-project/actions-codespell@master
with:
Expand Down
35 changes: 0 additions & 35 deletions advanced/01-pihole.conf

This file was deleted.

42 changes: 0 additions & 42 deletions advanced/06-rfc6761.conf

This file was deleted.

10 changes: 1 addition & 9 deletions advanced/Scripts/chronometer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pihole-FTL() {
local ftl_port LINE
# shellcheck disable=SC1091
. /opt/pihole/utils.sh
ftl_port=$(getFTLAPIPort)
ftl_port=$(getFTLConfigValue dns.port)
if [[ -n "$ftl_port" ]]; then
# Open connection to FTL
exec 3<>"/dev/tcp/127.0.0.1/$ftl_port"
Expand Down Expand Up @@ -210,11 +210,6 @@ get_init_stats() {
else
temp_file=""
fi

# Test existence of setupVars config
if [[ -f "/etc/pihole/setupVars.conf" ]]; then
setupVars="/etc/pihole/setupVars.conf"
fi
}

get_sys_stats() {
Expand All @@ -226,9 +221,6 @@ get_sys_stats() {
# Update every 12 refreshes (Def: every 60s)
count=$((count+1))
if [[ "$count" == "1" ]] || (( "$count" % 12 == 0 )); then
# Do not source setupVars if file does not exist
[[ -n "$setupVars" ]] && source "$setupVars"

mapfile -t ph_ver_raw < <(pihole -v -c 2> /dev/null | sed -n 's/^.* v/v/p')
if [[ -n "${ph_ver_raw[0]}" ]]; then
ph_core_ver="${ph_ver_raw[0]}"
Expand Down
30 changes: 11 additions & 19 deletions advanced/Scripts/piholeCheckout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ source "${PI_HOLE_FILES_DIR}/automated install/basic-install.sh"
# webInterfaceDir set in basic-install.sh
# piholeGitURL set in basic-install.sh
# is_repo() sourced from basic-install.sh
# setupVars set in basic-install.sh
# check_download_exists sourced from basic-install.sh
# fully_fetch_repo sourced from basic-install.sh
# get_available_branches sourced from basic-install.sh
# fetch_checkout_pull_branch sourced from basic-install.sh
# checkout_pull_branch sourced from basic-install.sh

source "${setupVars}"

warning1() {
echo " Please note that changing branches severely alters your Pi-hole subsystems"
echo " Features that work on the master branch, may not on a development branch"
Expand Down Expand Up @@ -61,12 +58,11 @@ checkout() {
echo -e " Please re-run install script from https://github.com/pi-hole/pi-hole${COL_NC}"
exit 1;
fi
if [[ "${INSTALL_WEB_INTERFACE}" == "true" ]]; then
if ! is_repo "${webInterfaceDir}" ; then
echo -e " ${COL_LIGHT_RED}Error: Web Admin repo is missing from system!"
echo -e " Please re-run install script from https://github.com/pi-hole/pi-hole${COL_NC}"
exit 1;
fi

if ! is_repo "${webInterfaceDir}" ; then
echo -e " ${COL_LIGHT_RED}Error: Web Admin repo is missing from system!"
echo -e " Please re-run install script from https://github.com/pi-hole/pi-hole${COL_NC}"
exit 1;
fi

if [[ -z "${1}" ]]; then
Expand All @@ -85,11 +81,9 @@ checkout() {
echo ""
echo -e " ${INFO} Pi-hole Core"
fetch_checkout_pull_branch "${PI_HOLE_FILES_DIR}" "development" || { echo " ${CROSS} Unable to pull Core development branch"; exit 1; }
if [[ "${INSTALL_WEB_INTERFACE}" == "true" ]]; then
echo ""
echo -e " ${INFO} Web interface"
fetch_checkout_pull_branch "${webInterfaceDir}" "devel" || { echo " ${CROSS} Unable to pull Web development branch"; exit 1; }
fi
echo ""
echo -e " ${INFO} Web interface"
fetch_checkout_pull_branch "${webInterfaceDir}" "devel" || { echo " ${CROSS} Unable to pull Web development branch"; exit 1; }
#echo -e " ${TICK} Pi-hole Core"

local path
Expand All @@ -101,10 +95,8 @@ checkout() {
echo -e " ${INFO} Shortcut \"master\" detected - checking out master branches..."
echo -e " ${INFO} Pi-hole core"
fetch_checkout_pull_branch "${PI_HOLE_FILES_DIR}" "master" || { echo " ${CROSS} Unable to pull Core master branch"; exit 1; }
if [[ ${INSTALL_WEB_INTERFACE} == "true" ]]; then
echo -e " ${INFO} Web interface"
fetch_checkout_pull_branch "${webInterfaceDir}" "master" || { echo " ${CROSS} Unable to pull Web master branch"; exit 1; }
fi
echo -e " ${INFO} Web interface"
fetch_checkout_pull_branch "${webInterfaceDir}" "master" || { echo " ${CROSS} Unable to pull Web master branch"; exit 1; }
#echo -e " ${TICK} Web Interface"
local path
path="master/${binary}"
Expand Down Expand Up @@ -137,7 +129,7 @@ checkout() {
exit 1
fi
checkout_pull_branch "${PI_HOLE_FILES_DIR}" "${2}"
elif [[ "${1}" == "web" ]] && [[ "${INSTALL_WEB_INTERFACE}" == "true" ]] ; then
elif [[ "${1}" == "web" ]] ; then
str="Fetching branches from ${webInterfaceGitUrl}"
echo -ne " ${INFO} $str"
if ! fully_fetch_repo "${webInterfaceDir}" ; then
Expand Down