Jacob Salmela
28bed0041e
remove comment
...
Signed-off-by: Jacob Salmela <github@decoy.email>
7 years ago
Jacob Salmela
6f03e30151
fixes #1537 by checking if systemctl is found
...
Signed-off-by: Jacob Salmela <github@decoy.email>
7 years ago
Adam Warner
a9a40ca46c
Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
...
Signed-off-by: Adam Warner <adamw@rner.email>
7 years ago
bcambl
0f868f7649
remove un-used DONE variable
...
(still available via sourced COL_TABLE on line 29)
7 years ago
bcambl
31730e7197
add missing colors to COL_TABLE fallback
7 years ago
bcambl
7d76db00ac
update 'SELinux not detected' message
7 years ago
bcambl
8aceb8bf53
replace deprecated colors in debug script
...
- COL_LIGHT_GREEN -> COL_GREEN
- COL_LIGHT_RED -> COL_RED
- COL_LIGHT_PURPLE -> COL_PURPLE
7 years ago
bcambl
a17d1be7a4
simplify selinux debug variables
7 years ago
bcambl
1e6cc63abe
add SELinux checking to debug script
7 years ago
Adam Warner
7d56e2a937
`FTL` has an `L` in it, innit?
...
Signed-off-by: Adam Warner <adamw@rner.email>
7 years ago
Jacob Salmela
e1f818ffb7
Tweak/debug improvements ( #1585 )
...
* check for CIDR notation when comparing IPv6 address to that found in setupVars.conf
* highlight bad address entries in pihole.log and reference a corresponding FAQ
* show header output if Pi-holes x-header does not match
* fix automated mode when running from the dashboard. It would previously not automatically upload and generate a token.
* show disclaimer message
* undocumented feature for now: obfuscate domains in pihole.log so they are not visible when sent to the Pi-hole developers. We need to make an additonal flag for this in the pihole command. if the variable OBFUSCATE has a value, it will replace the domain in the log with a placeholder value
* fix small typo in the disclaimer
7 years ago
Jacob Salmela
05a724afae
codacy appeasement: remove useless cats
7 years ago
Jacob Salmela
1957b002bc
add comments about X-Headers and further explain the file descriptor cod.
7 years ago
Jacob Salmela
04cef25add
remove color character codes before uploading so the log is more readable on our plaintext tricorder server
7 years ago
Jacob Salmela
22fac5e1e0
additional shellcheck fixes
7 years ago
Jacob Salmela
b6a2a4ad5a
more shellcheck fixes
7 years ago
Jacob Salmela
5f00347019
appease shellcheck by removing two unneccesary functions and making some if/else blocks
7 years ago
Jacob Salmela
fc0440546f
add functions to parse head and tails of gravity.list and pihole.log
7 years ago
Jacob Salmela
172b8d2427
parse ftl log
7 years ago
Jacob Salmela
6d10a498a5
implement a limit on how many lines of a file we want to view
7 years ago
Jacob Salmela
881819ed5f
ignore big files we dont need to know about; also fix diagnosing pihole processes
7 years ago
Jacob Salmela
3275c5f710
more comments to help understand the script
7 years ago
Jacob Salmela
b0cc1a38c3
adjust minor formatting for better readability
7 years ago
Jacob Salmela
e10182c839
only parse files required by Pi-hole
7 years ago
Jacob Salmela
b4f1fe08f0
variablize all files and directories. also put required files and folders into an arry so we can compare them in later functions by parsing through them
7 years ago
Jacob Salmela
64171fa2a1
small color and formatting changes
7 years ago
Jacob Salmela
048eacd305
parse array in correct location
7 years ago
Jacob Salmela
24aa72c19d
condense repetative code into functions; parse the content of each file
7 years ago
Jacob Salmela
92b5fe4be4
check arch compatibility and add gateway faq url
7 years ago
Jacob Salmela
8b4c0b456b
exclude webpassword from being uploaded. also check that the IP addresses detected match those defined in setupVars.conf
7 years ago
Jacob Salmela
02a601deff
comment out dir checks for lighttpd, cronm and http as they have a lot of other files that need parsing through. May need to increase the logic there if this is information we really need to know.
7 years ago
Jacob Salmela
b207fadc04
check if os is supported based on pretty name
7 years ago
Jacob Salmela
d51c067e1b
change some verbiage; new function to compare the ports in use to the services assigned to them.
7 years ago
Jacob Salmela
2fea5d428d
condense repetitive code into functions
7 years ago
Jacob Salmela
d51e0c49b1
remove comments and blank lines when parsing files
7 years ago
Jacob Salmela
36907edd50
parse contents of each file in each dir, several log_writes
7 years ago
Jacob Salmela
7ec169ab10
more comments, fixed automated tricorder, variablizing echos, verify FTL version
7 years ago
Jacob Salmela
7873da1ae5
more colors. shortened dig timeouts
7 years ago
Jacob Salmela
ef5a6e7880
add faq urls to some functions, added more colors, also use a static url for remote digs
7 years ago
Jacob Salmela
96f01e670f
add functions to write to console and log at the same time
7 years ago
Jacob Salmela
5902be2a49
comments for every line
7 years ago
Jacob Salmela
cc946ce068
upload to tricorder functions
7 years ago
Jacob Salmela
1102fdc44b
append everything the user sees to the pihole_debug.log file
7 years ago
Jacob Salmela
c995c81fff
adjust some spacing
7 years ago
Jacob Salmela
6684af9938
add lighttpd list function and gravity analysis
7 years ago
Jacob Salmela
8bafd12f95
fix resolver functions and add x-header function
7 years ago
Jacob Salmela
76266cf31b
add resolver functions and check directory content functions
7 years ago
Jacob Salmela
1a87d3a659
add process check function
7 years ago
Jacob Salmela
085f2c6ca0
add port check function
7 years ago
Jacob Salmela
b74300f67c
add ping internet function and fix some spacing issues
7 years ago