Commit Graph

20 Commits (543708184fb6462c54db4d23f73a9d2f30a78689)

Author SHA1 Message Date
Christian König 543708184f
Remove getFTLAPIPort() function and fix pihole status
1 year ago
Adam Warner f54aad3522
REVISIT: Remove some references to setupVars (some files can probably go entirely...)
1 year ago
Adam Warner 40e6430950
REVISIT: Don't rely on existence of setupVars.conf
1 year ago
Adam Warner 0f105edcdf
pihole command: read values from pihole-FTL instead of setupvars.conf
1 year ago
Adam Warner d95ff956aa
add wrappers to utils.sh for setting FTL config & add tests
1 year ago
Christian König 67385b7ed4
Touch files before addKey or addOrEditKeyValPair
2 years ago
Christian König 276c480f50
Return default port if non-numeric characters are set in pihole-FTL.conf for FTLPORT. FTL does the same in such case and provide the API on 4711
2 years ago
Christian König 25ba68104b Remove last traces
2 years ago
Christian König 3d01e4d0cf No detour - use pihole-FTL.conf to get the API port number
2 years ago
Christian König 7b77d991df
Move FTL port and PID functions to utils.sh
2 years ago
Christian König 73d5902bed
Add editorconfig-checker workflow
2 years ago
Adam Warner d78c689e55
no more alphabetical order
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
2 years ago
yubiuser 9b4f6c84cd
Minor review comments
2 years ago
Adam Warner 4d31d5ee11
Address review comments
2 years ago
Adam Warner 7fa8cdd03e
Address:
2 years ago
Adam Warner 59fc3804be
Make utils.sh posix compatible per request
2 years ago
Adam Warner 48138d32b6
Adjust addOrEditKeyValPair to optionally take two or three arguments (adjust test to suit)
2 years ago
Christian König 42424b515b Add getFTLAPIPort function
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
2 years ago