dependabot[bot]
2d06861273
Bump the python-dependencies group across 1 directory with 2 updates
...
Bumps the python-dependencies group with 2 updates in the /test directory: [pytest](https://github.com/pytest-dev/pytest ) and [tox](https://github.com/tox-dev/tox ).
Updates `pytest` from 8.4.1 to 8.4.2
- [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/8.4.1...8.4.2 )
Updates `tox` from 4.28.4 to 4.30.2
- [Release notes](https://github.com/tox-dev/tox/releases )
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/tox/compare/4.28.4...4.30.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-version: 8.4.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: python-dependencies
- dependency-name: tox
dependency-version: 4.30.2
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: python-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-09-06 10:01:59 +00:00
Adam Warner
950107503d
uninstall refactor and improvement ( #6339 )
2025-08-29 13:30:51 +01:00
Rob Gill
87f307f1d8
Uninstall refactor
...
Split removePiholeFiles into functions for each category.
Reorder execution so that:
Pihole-FTL is stopped and removed before shutdown scripts are removed.
User and group are removed before needed commands are removed.
Remove database and log files in user-specified non-default locations,
and use local directories from basic install.sh, falling back to defaults.
Remove use of sudo as the script already checks that it is called as root.
Advise user of location of crontab backup if is created
Make use of service control functions, command detection and default
directories from basic_install.sh
Align variable names with current basic-install.sh
Disable pihole-FTL service immediately, if systemctl is available
Call systemd daemon-reload after removing service files (on systemd systems)
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2025-08-29 08:47:00 +10:00
Adam Warner
0a837dd955
Alpine Linux Support and Tests ( #6275 )
2025-08-27 21:13:37 +01:00
Michael Ziminsky (Z)
f50a4c1c89
Don't use hard-coded path for pihole user nologin
shell
...
Signed-off-by: Michael Ziminsky (Z) <mgziminsky@users.noreply.github.com>
2025-08-16 21:47:57 +00:00
Michael Ziminsky (Z)
3908be911c
Alpine: Switch cron service from busybox to cronie during install
...
Signed-off-by: Michael Ziminsky (Z) <mgziminsky@users.noreply.github.com>
2025-08-16 21:47:56 +00:00
Michael Ziminsky (Z)
44f95a4f57
Alpine: Ensure community repo is enabled and handle dependency install errors
...
Signed-off-by: Michael Ziminsky (Z) <mgziminsky@users.noreply.github.com>
2025-08-16 21:47:56 +00:00
Michael Ziminsky (Z)
4bf67a3c79
Alpine: Add some additional dependencies and minor script fixes
...
Signed-off-by: Michael Ziminsky (Z) <mgziminsky@users.noreply.github.com>
2025-08-16 21:47:55 +00:00
Rob Gill
d75dae788d
Alpine Linux tests
...
Add Dockerfile and corresponding tox file to add alpine linux 3.21 & 3.22 to the test suite
Add apk as another package manager in the automated install tests
Use short switches for su command as busybox's su does not accept long switches here
Add Alpine test to github workflow
Signed-off-by: Michael Ziminsky (Z) <mgziminsky@users.noreply.github.com>
2025-08-16 21:47:54 +00:00
Michael Ziminsky (Z)
0db48383ae
Add support for alpine
...
Signed-off-by: Michael Ziminsky (Z) <mgziminsky@users.noreply.github.com>
2025-08-16 21:47:54 +00:00
Dominik
73521bb110
Add FTL bash autocomplete ( #6376 )
2025-08-16 21:02:42 +02:00
yubiuser
36c4193dc5
Bump actions/checkout from 4.2.2 to 5.0.0 in the github-actions-dependencies group ( #6387 )
2025-08-16 12:36:52 +02:00
dependabot[bot]
6e9e961d3c
Bump actions/checkout in the github-actions-dependencies group
...
Bumps the github-actions-dependencies group with 1 update: [actions/checkout](https://github.com/actions/checkout ).
Updates `actions/checkout` from 4.2.2 to 5.0.0
- [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.2.2...v5.0.0 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 5.0.0
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-16 10:23:35 +00:00
Christian König
4511daf560
Use pihole-FTL --complete to generate autocomplete suggestions
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-08-06 21:01:37 +02:00
Christian König
5d1ef6279f
Fix shellcheck warnings for pihole bash completion
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-08-06 13:05:48 +02:00
Christian König
340ffbe5e8
Add pihole-FTL bash completion
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-08-06 13:05:36 +02:00
yubiuser
75286a1626
Bump tox from 4.28.3 to 4.28.4 in /test in the python-dependencies group ( #6371 )
2025-08-02 12:56:30 +02:00
dependabot[bot]
9bc17a1f2b
Bump tox from 4.28.3 to 4.28.4 in /test in the python-dependencies group
...
Bumps the python-dependencies group in /test with 1 update: [tox](https://github.com/tox-dev/tox ).
Updates `tox` from 4.28.3 to 4.28.4
- [Release notes](https://github.com/tox-dev/tox/releases )
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/tox/compare/4.28.3...4.28.4 )
---
updated-dependencies:
- dependency-name: tox
dependency-version: 4.28.4
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: python-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-02 10:52:42 +00:00
yubiuser
86850e9020
Add "setpassword" to pihole Bash completion ( #6369 )
2025-07-31 19:06:45 +02:00
deHakkelaar
d4562a1deb
Add "setpassword" to pihole Bash completion
...
Its missing.
After:
```
$ sudo pihole
allow arpflush disable logging reloadlists tail version
allow-regex checkout enable query repair uninstall wildcard
allow-wild debug flush regex setpassword updateGravity
api deny help reloaddns status updatePihole
```
Signed-off-by: deHakkelaar <deHakkelaar@users.noreply.github.com>
2025-07-31 18:03:43 +02:00
Adam Warner
62ccfc77de
Explicitly check for the existence of FTL binary before attempting to stop it. Prevents warning message on fresh installs ( #6364 )
2025-07-28 15:56:42 +01:00
Dominik
0df3b41ca0
Do not call pihole-FTL --config interactively ( #6368 )
2025-07-27 20:25:31 +02:00
DL6ER
5cb601200c
Use non-interactive shell in utils.sh:getFTLConfigValue to avoid colored output
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-07-26 21:54:25 +02:00
Adam Warner
342c8b693b
Revert "pihole api - use keepalive for curl queries" ( #6367 )
2025-07-26 19:12:46 +01:00
Adam Warner
24d8754033
Revert "pihole api - use keepalive for curl queries"
2025-07-26 12:35:02 +01:00
yubiuser
966e466c9e
Bump tox from 4.27.0 to 4.28.3 in /test in the python-dependencies group ( #6366 )
2025-07-26 12:43:27 +02:00
dependabot[bot]
37ec67e9a3
Bump tox from 4.27.0 to 4.28.3 in /test in the python-dependencies group
...
Bumps the python-dependencies group in /test with 1 update: [tox](https://github.com/tox-dev/tox ).
Updates `tox` from 4.27.0 to 4.28.3
- [Release notes](https://github.com/tox-dev/tox/releases )
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/tox/compare/4.27.0...4.28.3 )
---
updated-dependencies:
- dependency-name: tox
dependency-version: 4.28.3
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: python-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-07-26 10:36:36 +00:00
Adam Warner
364ba99b1f
Update automated install/basic-install.sh
...
Co-authored-by: yubiuser <github@yubiuser.dev>
Signed-off-by: Adam Warner <github@adamwarner.co.uk>
2025-07-26 10:56:21 +01:00
Adam Warner
9252e90bd6
Check for the existence of the FTL binary before stopping the service
...
This prevents errors on fresh installs where the FTL binary does not exist yet.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2025-07-26 10:31:58 +01:00
Adam Warner
ae0fef4626
pihole api - use keepalive for curl queries ( #6365 )
2025-07-26 10:22:16 +01:00
Rob Gill
5b4a7b8b74
pihole api - use keepalive for curl queries
...
Adds the keepalive header to all curl requests
This reduces session establishment time across the multiple
requests necessary to authenticate, obtain response and log out
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2025-07-26 18:48:32 +10:00
Dan Schaper
a9680db218
Use 'true'/'false' strings instead of 0/1 integers for boolean root user check in pihole command ( #6351 )
2025-07-23 09:16:15 -07:00
Christian König
7aa57e154e
Group functions
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-07-23 08:23:09 +02:00
Christian König
05f4ae7719
Invert need_root logic and check if set/unset
...
Signed-off-by: Christian König <github@yubiuser.dev>
Co-authored-by: Dan Schaper <dan.schaper@pi-hole.net>
2025-07-23 08:09:26 +02:00
Dan Schaper
29b6252935
Fix gravity user permission checking and fix error on pihole-FTL --config failures ( #6352 )
2025-07-22 15:27:07 -07:00
Dan Schaper
f324d4cc7d
Separate network flush and arp table flush functions ( #6319 )
...
This PR updates the function flushing the network tables and the ARP table. It separates the two, renaming the whole function to networkflush and makes flushing ARP optional by appending --arp. Deletion of the network table is now done via FTL's /action/flush/arp endpoint.
Documentation: https://github.com/pi-hole/docs/pull/1253
Related PR in the FTL repo: https://github.com/pi-hole/FTL/pull/2541
2025-07-22 15:20:50 -07:00
yubiuser
310f0711fa
Group evaluations
...
Co-authored-by: Dan Schaper <dan.schaper@pi-hole.net>
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-07-22 12:52:43 +02:00
Christian König
9580dc6560
Improve setFTLConfigValue function
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-07-22 12:50:42 +02:00
Christian König
70e317f373
Revert https://github.com/pi-hole/pi-hole/pull/6345
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-07-22 12:50:42 +02:00
Christian König
285b3c37f9
Tweak fluash ARP function
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-07-22 12:45:22 +02:00
Dan Schaper
41f6738e97
Update man page - remove "reconfigure" option ( #6361 )
2025-07-21 13:57:51 -07:00
RD WebDesign
22e6ff2cdf
Update man page - remove "reconfigure" option
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-07-21 16:15:25 -03:00
Dan Schaper
be36432f24
Speed up pihole api
( #6336 )
2025-07-21 10:51:25 -07:00
Dan Schaper
4bea9a1d12
Use RTMIN value provided by FTL when possible ( #6358 )
...
In some cases `kill -RTMIN` can send incorrect signal value to the FTL causing it to terminate instead of performing lists reload.
https://github.com/pi-hole/FTL/issues/2573
2025-07-20 18:06:00 -07:00
Dan Schaper
35ce3580e5
Reduce pihole --query jq calls ( #6334 )
2025-07-20 18:02:45 -07:00
Dan Schaper
90eb5778ca
Re-order authentication errors in verbose mode ( #6338 )
2025-07-20 17:46:07 -07:00
Dan Schaper
c0539a4fb0
Remove netcat from the list of dependencies ( #6343 )
2025-07-20 17:44:04 -07:00
Jack'lul
da85a7a2a7
Use RTMIN value provided by FTL when possible
...
Signed-off-by: Jack'lul <jacklulcat@gmail.com>
2025-07-18 23:13:19 +02:00
Christian König
3c52ce98d4
Revert https://github.com/pi-hole/pi-hole/pull/6312
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-07-16 13:50:37 +02:00
Dan Schaper
ae048201a2
Remove readonly
from list.sh to avoid errors ( #6349 )
2025-07-14 21:10:53 -07:00