Commit graph

5969 commits

Author SHA1 Message Date
DL6ER
e8884083ef
Apply suggestions from code review
Signed-off-by: DL6ER <DL6ER@users.noreply.github.com>
2023-11-07 08:58:31 +01:00
DL6ER
e3c6f162d8
Apply suggestions from code review
Co-authored-by: Adam Warner <me@adamwarner.co.uk>
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: DL6ER <DL6ER@users.noreply.github.com>
2023-11-07 08:57:56 +01:00
DL6ER
0b4131189d
Migrate Pi-hole created files out of /etc/dnsmasq.d into a pihole owned directory
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-11-06 14:55:34 +01:00
yubiuser
2746ee3ae9
Tweak help text of pihole setpassword (#5476) 2023-11-05 23:24:31 +01:00
Christian König
bc96d3b0a9
Tweak help text of pihole setpassword
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-05 21:18:46 +01:00
DL6ER
395110f92f
When setting a blank password, use webserver.api.password instead of webserver.api.pwhash (#5465) 2023-11-04 17:43:09 +01:00
yubiuser
758ace57c0
Check for valid OS via IPv4 and IPv6 (#5305) 2023-11-04 08:02:38 +01:00
yubiuser
4c129afb10
Start counting at postion 1 (#5470) 2023-11-02 07:00:23 +01:00
Christian König
ced1c5d50b Start counting at postion 1
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-01 21:57:36 +01:00
yubiuser
ce21b4c731
Remove idn2 as punycode conversion is handled by FTL (#5468) 2023-11-01 21:06:02 +01:00
Christian König
480a8c8d7f
Remove idn2 as punycode conversion is handled by FTL
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-31 21:02:26 +01:00
DL6ER
0a193f98a4
Tweak Pi-hole's debug facility for v6 (#5461) 2023-10-29 06:13:22 +01:00
Adam Warner
4c4a2ad5bd
Use suffixed temp file (#5457) 2023-10-28 22:20:33 +01:00
Adam Warner
ab3b6dfa67
No need to >/dev/null because setFTLConfigValue already does this
adjust output of setFTLConfigValue to test for the exit code of `pihole-FTL --config`
2023-10-28 19:46:45 +01:00
Adam Warner
6292e65b37
When setting a blank password, use webserver.api.password instead of webserver.api.pwhash (fixed in https://github.com/pi-hole/FTL/pull/1702)
This prevents the password from being blanked out on the command line when it has been set by an environment variable
2023-10-28 17:56:37 +01:00
yubiuser
ed5d794008
Bump pytest from 7.4.2 to 7.4.3 in /test (#5462) 2023-10-28 14:02:35 +02:00
dependabot[bot]
2e9e579bba
Bump pytest from 7.4.2 to 7.4.3 in /test
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.2 to 7.4.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.4.2...7.4.3)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-28 10:31:54 +00:00
DL6ER
d377cfbc3e
Extract the first entry in the answer section from dig's output, replacing any multiple spaces and tabs with a single space
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-28 08:34:30 +02:00
DL6ER
15be8eeffa
Remove lighttpd config test
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-28 08:21:08 +02:00
DL6ER
635b4e952f
Add NOERROR/NXDOMAIN support in the DNS resolution test
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-28 08:20:31 +02:00
DL6ER
c86e7b3f96
Generalize CPU check to a short hardware information output
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-28 08:13:31 +02:00
DL6ER
dcc7e96d2f
Remove detection of addresses of PIHOLE_INTERFACE as it is gone, too
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-28 08:07:11 +02:00
DL6ER
ccd8c470a5
check_x_headers is no more
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-28 08:03:37 +02:00
DL6ER
00d7e998b4
setupVars.conf and pihole-FTL.conf are no more - use pihole.toml instead
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-28 08:03:09 +02:00
Christian König
fd8fdd3513
Use suffixed temp file
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-23 21:36:18 +02:00
DL6ER
a44e51bf76
Fix and simplify binary download (#5451) 2023-10-22 23:03:42 +02:00
DL6ER
91c5967b27
Fix gravity swapping (#5455) 2023-10-22 23:03:30 +02:00
DL6ER
842a9d7778
Address review comments
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-22 08:33:56 +02:00
DL6ER
7523c49f62
Swapping the databases must be the last step before the cleanup. Otherwise, FTL may be reloading from an only partially completed database causing spurious errors and/or warnings.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-22 08:14:11 +02:00
DL6ER
369ccf13a8
Move FTL binary availability check after the supported OS check
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-21 21:40:21 +02:00
DL6ER
38ecc1693f
Further simplify the ARMv6 test
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-21 20:39:32 +02:00
DL6ER
30bfc7cc9f
Add binutils tot he OS check dependencies as we need it to check if the local system is abel to run any of our precompiled FTL binaries
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-21 19:15:10 +02:00
DL6ER
45687d675b
Fix the binary detection for ARMv6 and simplify the router overall
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-21 19:13:45 +02:00
DL6ER
ca7836bf71
Remove now obsolete GLIBC version check
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-21 19:05:45 +02:00
DL6ER
8bcd1d4c54
*BREAKING* Drop support for ancient ARMv4 and ARMv5 (#5445) 2023-10-21 18:27:42 +02:00
yubiuser
19e081b8ac
Bump actions/checkout from 4.1.0 to 4.1.1 (#5448) 2023-10-21 13:51:37 +02:00
dependabot[bot]
79ebbacc4a
Bump actions/checkout from 4.1.0 to 4.1.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-21 10:27:01 +00:00
yubiuser
6cf39d9b92
Remove temp dir created when downloading FTL (#5429) 2023-10-20 09:25:10 +02:00
DL6ER
c571d8d37d
Drop support for ancient ARMv4 and ARMv5, the Debian binaries turn out to cause unresolvable SIGFPE on ARMv6 and lower. Fortunately, we can still use the Alpine binaries on all Raspberry Pi models (even the oldest ones)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-19 22:13:44 +02:00
yubiuser
33a41391b5
Logrotate config file needs to be owned by root (#5444) 2023-10-18 23:00:47 +02:00
Christian König
d77dbf736c
Logrotate config file needs to be owned by root
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-18 22:09:38 +02:00
yubiuser
2deadb2e4a
Avoid printing getFTLConfigValue return in statusFunc() (#5442) 2023-10-18 13:19:02 +02:00
RD WebDesign
2c7fa4a7b3
Avoid printing getFTLConfigValue return in statusFunc()
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-10-18 02:07:06 -03:00
DL6ER
ed0dfa8b77
Add a final message to gravity (#5441) 2023-10-16 23:00:12 +02:00
RD WebDesign
27522fbc18
Add a final message to gravity
The terminal version doesn't really need a final message, but this will be
read by the web interface to show a success message

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-10-16 17:19:44 -03:00
yubiuser
aaa9acc0b9
Update query.sh to use FTL's API instead of directly interacting with the database (#5361) 2023-10-16 21:00:42 +02:00
Christian König
123ba1f154
Remove temp dir created when downloading FTL
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-15 22:15:11 +02:00
Christian König
2005d04625
Exact search is the new default
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-10-14 21:50:57 +02:00
yubiuser
2841a33b81
Set owner of gravity output files to pihole (#5419) 2023-10-14 19:40:27 +02:00
yubiuser
539f379cb4
Remove Chronometer (#5423) 2023-10-14 19:40:02 +02:00