mrmajik45
00f98543ad
read without -r will mangle backslashes.
6 years ago
Mcat12
03e5a78d8f
Merge remote-tracking branch 'origin/FTLDNS' into development
...
# Conflicts:
# advanced/Scripts/piholeDebug.sh
6 years ago
Dan Schaper
ba7782f867
Space/Tab piholeDebug.sh
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
6 years ago
Mcat12
868948509a
Split declaration and assignment of random_url
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mark Drobnak
e71492a2b3
Update debug script for simple list format
...
Gravity is now just a list of domains, not IP addresses and domains separated by a space.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mark Drobnak
9fd70cbdf9
Merge pull request #2057 from pi-hole/fix/debug-empty-ports
...
debug script: fix empty ports on some systems
6 years ago
Mark Drobnak
f568012b9d
Merge pull request #2070 from pi-hole/new/debug-locale
...
Get user locale when debugging
6 years ago
Adam Warner
6977f655e3
fix a typo
...
comment out some unused variables, but not deleting them in case there is a plan for them in future...
Signed-off-by: Adam Warner <adamw@rner.email>
6 years ago
Adam Warner
e6fc9dc75d
disable 2016 in two places and declare local variables
...
Signed-off-by: Adam Warner <adamw@rner.email>
6 years ago
Adam Warner
b57b3f4588
Disable SC2001 for generation of `the_os`
...
Signed-off-by: Adam Warner <adamw@rner.email>
6 years ago
Adam Warner
776ae92416
fix some shellcheck/stickler compaints in debug script
...
Signed-off-by: Adam Warner <adamw@rner.email>
6 years ago
Mark Drobnak
d4870b3854
Merge pull request #2053 from pi-hole/tweak/debug-logs
...
Get head and tail of pihole-FTL.log during debug process
6 years ago
Jacob Salmela
5ffc3561ed
implement dschapers suggestions--better command, less subshells, and finer formatting
...
Signed-off-by: Jacob Salmela <jacob.salmela@pi-hole.net>
6 years ago
Dan Schaper
250b445eee
Split declaration and population for stickler.
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
6 years ago
Mark Drobnak
bb9a18ef08
Merge pull request #1987 from ryanknapper/patch-1
...
Proper output for debug CPU detection
6 years ago
Jacob Salmela
1a275ba184
debug user locale; improve function to parse variables and files
...
Signed-off-by: Jacob Salmela <jacob.salmela@pi-hole.net>
6 years ago
Jacob Salmela
68c27eb2a1
add label to x-header so you know which one is being evaluated
...
Signed-off-by: Jacob Salmela <jacob.salmela@pi-hole.net>
6 years ago
Jacob Salmela
143e75d213
fix empty ports on some systems
...
Signed-off-by: Jacob Salmela <jacob.salmela@pi-hole.net>
6 years ago
Jacob Salmela
d9d3caec22
new head tail function and get head tail of pihole-FTL.log instead of just head
...
Signed-off-by: Jacob Salmela <jacob.salmela@pi-hole.net>
6 years ago
Jacob Salmela
7159ecb632
reduce ping times for faster script completion
...
Signed-off-by: Jacob Salmela <jacob.salmela@pi-hole.net>
6 years ago
Ryan Knapper
c17d95bfed
Proper output for debug CPU detection
...
Inserted "log_write" to properly output CPU detection lines.
Signed-off-by: Ryan Knapper (ryanknapper@gmail.com>
6 years ago
Vasilis Gerakaris
939806f021
piholeDebug.sh: Correct typo mistake
...
Signed-off-by: Vasilis Gerakaris <vgerak@gmail.com>
**By submitting this pull request, I confirm the following:**
`{please fill any appropriate checkboxes, e.g: [X]}`
- [x] I have read and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md ), as well as this entire template.
- [x] I have made only one major change in my proposed changes.
- [] I have commented my proposed changes within the code.
- [] I have tested my proposed changes, and have included unit tests where possible.
- [] I am willing to help maintain this change if there are issues with it later.
- [x] I give this submission freely and claim no ownership.
- [x] It is compatible with the [EUPL 1.2 license](https://opensource.org/licenses/EUPL-1.1 )
- [x] I have squashed any insignificant commits. ([`git rebase`](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html ))
7 years ago
Adam Warner
8e0d76b63b
initiated -> initialized
...
Signed-off-by: Adam Warner <adamw@rner.email>
7 years ago
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