Christian König
c3c31a1a60
Print version details automatically if not on master
...
Signed-off-by: Christian König <ckoenig@posteo.de>
5 months ago
Christian König
fe4d934a40
Simplify pihole -v
...
Signed-off-by: Christian König <ckoenig@posteo.de>
5 months ago
Christian König
bc96d3b0a9
Tweak help text of pihole setpassword
...
Signed-off-by: Christian König <ckoenig@posteo.de>
6 months ago
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`
7 months ago
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
7 months ago
RD WebDesign
2c7fa4a7b3
Avoid printing getFTLConfigValue return in statusFunc()
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
7 months ago
Christian König
ec83d6b793
No help for gone functions
...
Signed-off-by: Christian König <ckoenig@posteo.de>
7 months ago
Christian König
46ff257344
Remove Chronometer
...
Signed-off-by: Christian König <ckoenig@posteo.de>
7 months ago
Adam Warner
044e856e6b
Disable checkout function for (official) docker containers
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
7 months ago
Christian König
8ef8a27583
Remove webpage.sh
...
Signed-off-by: Christian König <ckoenig@posteo.de>
10 months ago
Adam Warner
6edd6a4d55
if ${USER} variable is blank, then populate it with whoami
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
10 months ago
Christian König
ba3e290915
Fix shellcheck errors
...
Signed-off-by: Christian König <ckoenig@posteo.de>
12 months ago
Christian König
b5800ef718
Remove getFTLAPIPort() function and fix pihole status
...
Signed-off-by: Christian König <ckoenig@posteo.de>
12 months ago
Adam Warner
2784b267ec
pihole command: read values from pihole-FTL instead of setupvars.conf
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
12 months ago
DL6ER
3695610300
Allow running pihole -g without root (run as user pihole)
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
12 months ago
Christian König
ca00ffa101
Only source versions file if the file exits
...
Signed-off-by: Christian König <ckoenig@posteo.de>
1 year ago
Adam Warner
b8eae60fcc
Disable a few commands for Docker. Currently this is done by monkeypatching the the `pihole` file on Docker install, however if someone was to run pihole checkout, these patches are removed.
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
1 year ago
RD WebDesign
233453267e
Using `shift` to allow passing multiple arguments
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2 years ago
RD WebDesign
f3c27f706f
Pass only the correct argument
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2 years ago
Christian König
3d01e4d0cf
No detour - use pihole-FTL.conf to get the API port number
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
89b88416b3
Fix 4898
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
7b77d991df
Move FTL port and PID functions to utils.sh
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
b486786041
Add database healthy checks to debug script
...
Fix health check output comparison in gravity script as well
Add note about waiting time
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
2c5907a8b1
Requiere sudo for pihole -t
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Adam Warner
36dd533ef3
use directory /var/log/pihole/ for log storage
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2 years ago
Adam Warner
db116971ce
I tried to do too many things in one function, vastly overcomplicating what should have been _this_ all along
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2 years ago
Adam Warner
86dd612882
remove `readonly` directive from declaration of `utilsfile`, it is unnecassery
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2 years ago
yubiuser
42d3368955
Merge pull request #4663 from pi-hole/no_root
...
Only use sudo power if needed
2 years ago
Adam Warner
4d31d5ee11
Address review comments
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2 years ago
yubiuser
6121c162ff
Fix typo
...
Co-authored-by: Marius Hanl <66004280+Maran23@users.noreply.github.com>
2 years ago
Adam Warner
7fa8cdd03e
Address:
...
- Review Comments
- Stickler Complaints
2 years ago
Christian König
722a716de3
Add exit code to status function
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
614d18cd3d
Debug need sudo
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
54ce8c2622
Only use sudo power if needed
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
42424b515b
Add getFTLAPIPort function
...
Add ftl_api_port function
Signed-off-by: Christian König <ckoenig@posteo.de>
Use getFTLAPIPort in pihole
Signed-off-by: Christian König <ckoenig@posteo.de>
Use default portfile as fallback
Signed-off-by: Christian König <ckoenig@posteo.de>
Fix stickler
Signed-off-by: Christian König <ckoenig@posteo.de>
Correct variables
Signed-off-by: Christian König <ckoenig@posteo.de>
Apply suggestions from code review
Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
Add test getFTLAPIPort returing default port
Signed-off-by: Christian König <ckoenig@posteo.de>
Remove unused code from test_key_val_replacement_works
Signed-off-by: Christian König <ckoenig@posteo.de>
Add getFTLAPIPort_custom test
Signed-off-by: Christian König <ckoenig@posteo.de>
Fix output format
Signed-off-by: Christian König <ckoenig@posteo.de>
Add debugging
Signed-off-by: Christian König <ckoenig@posteo.de>
Remove debugging and fix function
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Adam Warner
77e5121d43
Split new function out into a separte utility script and add a test for it. Can be used in future to organise re/commonly-used code
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2 years ago
Adam Warner
1dd9d55d82
Replace value for BLOCKING_ENABLED (and QUERY_LOGGING, for consistency) and if value that we are trying to replace does not exist, add it to the end of the file.
...
Co-authored-by: MichaIng <micha@dietpi.com>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2 years ago
Lukas Schlötterer
ed6b85241b
use sed substitute instead of delete and append ( #4555 )
...
* use sed substitute instead of delete and append
doesn't move the line to the end of the file, instead keeps the order of the lines in setupVars.conf intact
Signed-off-by: Lukas Schlötterer <80917404+lschloetterer@users.noreply.github.com>
* Match start of line
as suggested in the review
Signed-off-by: Lukas Schlötterer <80917404+lschloetterer@users.noreply.github.com>
Co-authored-by: yubiuser <ckoenig@posteo.de>
Co-authored-by: yubiuser <ckoenig@posteo.de>
2 years ago
DL6ER
5823f5e254
Use ss instead of lsof ( #4518 )
...
* Use ss instead of lsof for pihole status checks
Signed-off-by: DL6ER <dl6er@dl6er.de>
* Use ss FILTER instead of piping into bash
Signed-off-by: DL6ER <dl6er@dl6er.de>
* Use ss in debug log generation
Signed-off-by: DL6ER <dl6er@dl6er.de>
* Remove lsof from dependencies
Signed-off-by: DL6ER <dl6er@dl6er.de>
2 years ago
Christian König
3989cc19e9
Remove double text output
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
bcb59159ed
Analyse port also on ports other than 53
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
2b52f92647
Inlcude port also in cli output
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
f45248df80
Use FTL's new dns-port API endpoint
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
5729f64ddc
Fix missing fi
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
yubiuser
4a2f4c1bce
Fix indention_2
...
Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
2 years ago
yubiuser
5ef731fc57
Fix indention
...
Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
2 years ago
Christian König
71ebd64f4e
mend
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
9f0e0dbd37
Fix analyse ports
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
ef30a85afb
Include port in status function
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
yubiuser
ae39e338fe
Use exec to run gravity script ( #4449 )
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago