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
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
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
Adam Warner
c09da77e2b
Fix pihole api
command by not setting the some variabes as readonly ( #6346 )
2025-07-14 22:09:27 +01:00
Adam Warner
1bef0415db
bare minimum first past fix for pihoe api
command not working due to attempting to re-set readony variabes PI_HOE_SCRIPT_DIR and utisfie.
...
Can't compain about them being readony if they're.. not.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2025-07-14 22:02:02 +01:00
Adam Warner
d6a83baf4f
Allow non-root access for updateGravity command
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2025-07-14 21:38:59 +01:00
Dan Schaper
5b5e02d492
Do not skip root check for pihole user ( #6312 )
2025-07-10 11:48:29 -07:00
Rob Gill
f24fc9573a
taillog Prevent grep interpeting search term as an option
...
Adds '--' indicating end of options before the user provided
search pattern.
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2025-06-29 06:45:02 +10:00
Christian König
a48665c7bb
Remove deprecated and unused colors
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-06-24 18:51:01 +02:00
Christian König
830c4bc049
Do not skipp root check for pihole user
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-06-21 22:40:43 +02:00
yubiuser
03b3b69617
Make LOGFILE readonly after assignment ( #6261 )
2025-06-01 15:47:11 +02:00
Dan Schaper
89c4976da4
Make LOGFILE readonly after assignment
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
2025-05-31 08:23:24 -07:00
RD WebDesign
dee44cb3da
Define "silent" as default option and include "verbose" to the man page
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-05-13 14:22:41 -03:00
RD WebDesign
190798e572
Allow simple pihole api
output, containing only the JSON payload
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-05-12 14:23:15 -03:00
Christian König
5002ce8ba7
Source files relative to the repos root
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-04-07 14:10:01 +02:00
Christian König
ca1bab3c1b
Fix more shellcheck warnings
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-04-07 10:52:57 +02:00
Adam Warner
2088601148
Add .shellcheckrc to configure shellcheck ignore SC1090-1 globally
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2025-04-06 18:46:47 +01:00
Adam Warner
3a9b9c027e
In ./pihole line 20:
...
source "${colfile}"
^----------^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
In ./pihole line 23:
source "${utilsfile}"
^------------^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
In ./pihole line 27:
source "${apifile}"
^----------^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
In ./pihole line 34:
source "${versionsfile}"
^---------------^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
In ./pihole line 251:
local timer="$(echo "${data}"| jq --raw-output '.timer' )"
^---^ SC2155 (warning): Declare and assign separately to avoid masking return values.
In ./pihole line 255:
local str="Pi-hole $(echo "${data}" | jq --raw-output '.blocking')${extra}"
^-^ SC2155 (warning): Declare and assign separately to avoid masking return values.
In ./pihole line 378:
local logging_enabled=$(getFTLConfigValue dns.queryLogging)
^-------------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
In ./pihole line 385:
readonly LOGFILE=$(getFTLConfigValue files.log.dnsmasq)
^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2025-04-06 14:11:40 +01:00
Adam Warner
821c953216
Remove 'reconfigure' option ( #5887 )
2025-02-28 21:14:18 +00:00
DL6ER
b64a54bba1
Print a more helpful message on pihole checkout in docker containers
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2025-02-22 11:53:16 +01:00
Christian König
49cf5bb221
Remove 'reconfigure' option
...
Signed-off-by: Christian König <github@yubiuser.dev>
2025-02-06 21:57:05 +01:00
RD WebDesign
bd9cc7cbb7
Clean up unused WEBCALL code
...
Debug Log is no longer available via web interface
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-01-09 17:15:12 -03:00
Christian König
3ac426b5d1
Update manpage
...
Signed-off-by: Christian König <github@yubiuser.dev>
2024-12-16 12:42:07 +01:00
Adam Warner
afdf45031f
Missed a couple of references in the previous PR
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2024-10-02 21:51:56 +01:00
Adam Warner
6645136f6b
Align the indentation for the case statement in the bottom part of pihole script
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2024-10-02 21:21:09 +01:00
Adam Warner
84a659dfac
Update pihole
...
Co-authored-by: yubiuser <github@yubiuser.dev>
Signed-off-by: Adam Warner <github@adamwarner.co.uk>
2024-10-02 19:41:17 +01:00
Adam Warner
be00f3e723
Rename reloaddns-lists
to reloadlists
per suggestion
...
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: Adam Warner <github@adamwarner.co.uk>
2024-10-02 19:39:34 +01:00
Adam Warner
cc476a49fe
remove the restartdns functionality and promote the reloaddns functions
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2024-09-24 14:15:15 +01:00
DL6ER
bcef4f0c97
pihole status should return (= exit) early on error instead of continuing the script
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-09-02 18:59:42 +02:00
Dominik
e3fc5cc8f2
Make the help text of "pihole checkout [what] [branch]" more colorful ( #5734 )
2024-08-28 08:43:11 +02:00
DL6ER
e8582f7740
Add pihole -h and autocompletion entry
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-08-26 19:44:42 +02:00
DL6ER
9e9c985245
FTL checkout: Check for availability of branches before trying to download from the webserver. Also, fix check_download_exists() possibly killing the script on non-availability of requested branches
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-08-26 06:11:42 +02:00
DL6ER
a302d7b5d7
Make the help text of "pihole checkout [what] [branch]" more colorful
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-08-26 05:22:15 +02:00
DL6ER
8e4fc27168
Add pihole api [endpoint] callback suitable for local API requests
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-08-24 10:06:48 +02:00
Christian König
2c32d485bd
Remove obsolet getFTLPIDFile()
...
We can get the path of the PID file via getFTLConfigValue files.pid
Signed-off-by: Christian König <github@yubiuser.dev>
2024-07-27 22:00:52 +02:00
DL6ER
897e23089c
Implement pihole enable/disable using the API
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-16 10:56:37 +02:00
DL6ER
ccdbfd4130
Use natural langauge for list manipulations, like pihole allow example.com or pihole deny other.net. Also remove using pihole deny not bad.org
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-25 13:56:49 +02:00
DL6ER
fe8e63853c
Use concatenate of arguments instead of using the array directly
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-22 20:49:44 +02:00
DL6ER
b835fa06a6
Further black -> deny renaming
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-22 20:48:07 +02:00
DL6ER
424e825bd9
Do not auto-sudo in the pihole command
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-22 20:42:22 +02:00
DL6ER
7e91b9ab47
Update help text
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-22 20:35:06 +02:00
DL6ER
bfc18f8329
Rewrite list functions to use the API
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-19 23:04:39 +02:00
DL6ER
8f24e8aa5f
Modify pihole -t to use TOML config items
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-19 22:41:42 +02:00
Christian König
c3c31a1a60
Print version details automatically if not on master
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-12-09 23:14:58 +01:00