{"push_id":1863788123,"size":6,"distinct_size":1,"ref":"refs/heads/development","head":"30526bb0836d832d4ee69c9b335b33842b69d0ee","before":"20b2dd6b19e7a13bd371e98c3f765d3616995e7a","commits":[{"sha":"ecde2225122904a89543712ec8f2b0fd1da26ff6","author":{"name":"Adam Warner","email":"6205ab7af74a8621f9a77584ce23662521621d99@users.noreply.github.com"},"message":"[Staging] 3.1 (#1502)\n\n* Fix handling of wildcard help text\r\n\r\n* Rewrite help text for better handling of params\r\n\r\n* Replace misleading letter variable\r\n\r\n* stash changes on branch switch, else it fails if any changes have been made.\r\n\r\n* Make changes according to comment in #1384\r\n\r\n* Update queryFunc()\r\n\r\n* Allow scanList() to search files using a wildcard by removing quotes wrapped around `${list}`\r\n* scanList() will not provide a domain ouput on each string if exact is specified (`grep -l`)\r\n* Remove unused processWildcards() function\r\n* Return a message if no domain is specified\r\n* IDN domains are converted to punycode when running a `pihole -q` search if the `python` package is available, otherwise will revert to current behaviour\r\n* Scan Blacklist & Wildcards first, exiting from search if a match is found (Fixes #1330)\r\n* Use one `grep` subshell to search for all \"*.domains\" lists at once (opposed to looping to get every matching file name, and then spawning a `grep` instance for every matching file)\r\n* queryFunc() will not return \"(0 results)\" output from files where no match is found\r\n* Sort results based off list number\r\n* Return a message if no results are found\r\n\r\n* Update basic-install.sh\r\n\r\n* Update block page. Allow for setupVars setting of CUSTOMBLOCKPAGE (bool) to prevent it being overwritten\r\n\r\n* simplify\r\n\r\n* further simplify\r\n\r\n* fix inteliJ IDEA complaints\r\n\r\n* even further simplify\r\n\r\n* tidy up output\r\n\r\n* revert line, looks tidyer\r\n\r\n* clarify\r\n\r\n* Revert \"Ensure any changes to blocking page are updated.\"\r\n\r\n* We test for dpkg lock on line 830 directly, no need for the check also\r\nin the template section.\r\n\r\nSigned-off-by: Dan Schaper <dan.schaper@pi-hole.net>\r\n\r\n* Display FTL version & version.sh rewrite\r\n\r\nWhile testing to make sure `pihole -v` would output `pihole-FTL version`, I noticed some options didn't work how I expected them to. For example, if I use `pihole -v -p`, I would expect to see the version output of Pi-hole Core. Instead, I'm informed that it's an invalid option.\r\n\r\nI've had the following things in mind while rewriting this:\r\n  * I'm operating under the assumption that FTL is only installed if the Admin Console is (Line 113 exit 0)\r\n  * I have modified the help text to only output with `pihole -v --help`\r\n  * I have modified all output to be more similar to the output style of `grep` and `curl` (Ditching \":::\")\r\n\r\nTesting output:\r\n```\r\nw3k@MCT:~$ pihole -v\r\n  Pi-hole version is v3.0.1-14-ga928cd3 (Latest: v3.0.1)\r\n  Admin Console version is v3.0-9-g3760482 (Latest: v3.0.1)\r\n  FTL version is v2.6.2 (Latest: v2.6.2)\r\nw3k@MCT:~$ pihole -v -c\r\n  Current Pi-hole version is v3.0.1-14-ga928cd3\r\n  Current Admin Console version is v3.0-9-g3760482\r\n  Current FTL version is v2.6.2\r\nw3k@MCT:~$ pihole -v -l\r\n  Latest Pi-hole version is v3.0.1\r\n  Latest Admin Console version is v3.0.1\r\n  Latest FTL version is v2.6.2\r\nw3k@MCT:~$ pihole -v -p --hash\r\n  Current Pi-hole hash is a928cd3\r\nw3k@MCT:~$ pihole -v -a --hash\r\n  Current Admin Console hash is 3760482\r\nw3k@MCT:~$ pihole -v --help\r\nUsage: pihole -v [REPO | OPTION] [OPTION]\r\nShow Pi-hole, Web Admin & FTL versions\r\n  <Shows all Repositories and Options>\r\nw3k@MCT:~$ pihole -v -foo\r\n  Invalid Option!\r\n```\r\n\r\n* Update -h to work as --hash\r\n\r\nAlso provide error output as per https://github.com/pi-hole/pi-hole/pull/1447#issuecomment-300600093\r\n\r\n* Perform EXACT searches on HOSTS lists correctly\r\n\r\n`\\s` on the end may be overkill, but it is the existing scanList() behaviour.\r\n\r\n* Fixed indentation\r\n\r\n* Minimise string duplication & other minor changes\r\n\r\nInstead of duplicating output strings, rewrite core/web/ftlOutput() into one neat versionOutput().\r\n\r\n* Modified syntax to be valid for Shellcheck\r\n\r\n* Log and echo gateway responses\r\n\r\n* Update queryFunc() to search Whitelist\r\n\r\nIf there is a match in Whitelist/Blacklist/Wildcards, `[ ! -t 1 ]` will cause the search to end if the terminal is closed when the script is called. This has the intended effect of allowing a user to search for a W/B/W domain (as well as all the adlists it's found in) using `pihole -q` via Terminal, but the script will stop searching after a W/B/W match when called by the block page.\r\n\r\n* Wrap in double brackets\r\n\r\n* Provide remote hashes for version.sh\r\n\r\n * Provide remote hashes for comparison\r\n * Use double braces for all conditions (for consistency)\r\n * Suppress potential \"cd\" error output\r\n * Provide \"not applicable\" output upon any hash request for FTL\r\n\r\n* whitelist on website blocked doesnt work (#1452)\r\n\r\nSince Pi-hole redirects ad domains to itself, accessing the script via de.ign.com is the same as pi.hole in this case. The fix should be as simple as adding a / before admin on this line.\r\n\r\n* Solve piholeLogFlush.sh having to be issued 2 x to clear logs (#1460)\r\n\r\nSimplified the command -v syntax, and added a sleep 3 timer to the first execution of the log rotation. The second execution was being issued while the first was still running, thus it would fail and you would have to issue the \"Flush Logs\" command a second time.\r\n\r\n* Use `echo \"ABC\" | pihole tricorder` to upload to Pi-hole's medical tricorder. Uses SSL if available.\r\n\r\n* Update list.sh\r\n\r\nI believe this has feature parity with `sed /foo/ Id` but also supports busybox, and my alpine docker ;)\r\n\r\n* Document `sed` substitution for user readability\r\n\r\nComment the oneliner with explanations of what each step does.\r\n\r\n* Update Help Output (#1467)\r\n\r\n\r\n\r\n* File consistency\r\n\r\n* Tabs to 2 spaces\r\n* Corrected indenting\r\n* Double braced conditionals\r\n* Quoted variables within conditionals\r\n\r\n* Standardise core help text\r\n\r\n* Added help text for disable command\r\n* Added help text for logging command\r\n\r\n* Clean up\r\n\r\n* Fixed certain new lines and spaces\r\n\r\n* Sync with development branch\r\n\r\n* Formatting consistency\r\n\r\n* Tabs to 2 spaces\r\n* Corrected indenting\r\n* Double braced conditionals\r\n* Quoted variables within conditionals\r\n* Fixed certain newlines and spaces\r\n\r\n* Admin help text\r\n\r\n* Added help text for interface command\r\n\r\n* Sync with development branch\r\n\r\n* Formatting consistency\r\n\r\n* Tabs to 2 spaces\r\n* Fixed some wording\r\n* Fixed certain spaces\r\n\r\n* Formatting consistency\r\n\r\n* Minor wording changes\r\n* Tabs to 2 spaces\r\n* Corrected indenting\r\n* Double braced conditionals\r\n* Quoted variables within conditionals\r\n* Fixed certain newlines and spaces\r\n\r\n* Blacklist help text\r\n\r\n* Formatting consistency\r\n\r\n* Tabs to 2 spaces\r\n* Corrected indenting\r\n\r\n* Cronometer help text\r\n\r\n* Formatting consistency\r\n\r\n* Fixed certain newlines and spaces\r\n* Corrected indenting\r\n\r\n* Checkout warning alteration\r\n\r\n* Add checkout help text\r\n\r\n* Corrected help output\r\n\r\n* Show help for \"pihole -a -i --help\"\r\n\r\n* Fix \"pihole disable --help\" and \"pihole -l --help\"\r\n\r\n* Show help for \"pihole -v -h\" \r\n\r\n* Indent output text\r\n* Minor help text change\r\n\r\n* Show help for \"pihole checkout --help\"\r\n\r\n* Tricorder: Insecure Opt-out\r\n\r\n* Check to see if Tricorder is being called directly\r\n* Provide opt-out for insecure transmission of debug log\r\n* Remove mention of internal function from help menu\r\n\r\n* :taco: is the new :shipit: squirrel\r\n\r\n* Wording changes and bug fix\r\n\r\n* Fix wildcard help text\r\n\r\n* -wild is not a valid option since we're already using -wild\r\n\r\n* Fix logrotation: manual flushing should be done twice, but automated rotation at midnight should only be done *once*!\r\n\r\n* Print echos only when manual flushing is requested\r\n\r\n* Add \"quiet\" mode + update comments in the cron file\r\n\r\n* Confirm Tricorder is online\r\n\r\n* Scan port 9998 to confirm the availability of \"tricorder.pi-hole.net\"\r\n* Exit codes for upload process\r\n\r\n* Formatting consistency\r\n\r\n* Add link to Windows DNS Swapper\r\n\r\nSee #1400\r\n\r\n* Install loopback firewall rules for FTL (#1419)\r\n\r\n* Install loopback firewall rules for FTL\r\n\r\n* FirewallD FTL ports\r\n\r\nSigned-off-by: Dan Schaper <dan.schaper@pi-hole.net>\r\n\r\n* Remove firewallD FTL local rules.\r\n\r\nLocal rules should not be blocked in firewallD, not requred for internal service FTD>\r\n\r\n* Reinstate https rules, and delete FTL rules\r\n\r\nFixes earlier commit.\r\n\r\n* Retrieve local repos on repair (#1481)\r\n\r\n* Retrieve local repos on repair\r\n\r\n* Change conditional to check for repair\r\n* Change wording of Update/Reconfigure message\r\n* Fixed indenting\r\n\r\n* Perform \"git reset --hard\" on reconfigure\r\n\r\n* Change directory before trying to reset repository. Fixes #1489\r\n\r\n* No need to `cd $PWD` as it doesn't affect flow of caller script.\r\n\r\nSigned-off-by: Dan Schaper <dan.schaper@pi-hole.net>\r\n\r\n* Refine output of password status in basic-install.sh:displayFinalMessage(). Fixes #1488 (#1490)\r\n\r\n* Rewrite Chronometer to output more stats\r\n\r\n* Fix output IPv4 addr when removing CIDR notation (#1498)\r\n\r\n* Move wildcards file if blocking is disabled (#1495)\r\n\r\n* Move wildcards file if blocking is diabled\r\n\r\n* Delete newline\r\n\r\n* Roll back merge #1417 (#1494)\r\n\r\n* Update ISSUE_TEMPLATE.md\r\n\r\n* Remove Question option\r\n\r\n* Prefer ULA over GUA addresses [IPv6] (#1508)\r\n\r\n* On installs with GUA and ULA's we should prefer ULA's as it's been demonstrated that GUA's can and often are rotated by ISPs. Fixes #1473\r\n\r\n* Add test for link-local address detection\r\n\r\n* Add ULA-only and GUA-only tests\r\n\r\n* Add test_IPv6_GUA_ULA_test and test_IPv6_ULA_GUA_test\r\n\r\n* Add \"\"\r\n\r\n* Add mock_command_2 command that can mock a command with more than one argument (as \"ip -6 address\") and result multiple lines of results\r\n\r\n* Make mock_command_2 more similar to the original mock_command\r\n\r\n* Correct comments\r\n\r\n* Fixed remaining comments\r\n\r\n* Fixed one last comment...\r\n\r\n* Fixed a comment...\r\n\r\n* Add weekly logrotation of FTL's log (#1509)\r\n\r\n* Update LICENSE of the project to EUPL v1.2\r\n\r\n* Make clear that NO is the default if the user just hits return (#1514)\r\n\r\n* Add tricorderFunc back as usable function (#1515)\r\n\r\nAs per #1464\r\n\r\n* Don't update FTL when there is a core update (as this will update FTL a second time). Fixes #1516\r\n\r\n* Add FTL tests to the test suite (#1510)\r\n\r\n* Add first version of FTL tests\r\n\r\n* Wait one second to allow FTL to start up and analyze our mock log\r\n\r\n* Add test_FTL_telnet_statistics\r\n\r\n* Added test_FTL_telnet_top_clients\r\n\r\n* Add test_FTL_telnet_top_domains\r\n\r\n* Revert \"Add FTL tests to the test suite (#1510)\" (#1519)\r\n\r\nThis reverts commit cf6a1ac9adb4e26570cc5da7c8be628080f37e0f.\r\n\r\n* Trim version output when update is successful (#1527)\r\n\r\n* Change ownership of /etc/pihole to user/group pihole. Fixes #1529 (#1530)\r\n\r\n* Delete temporary files after installing the FTL binary. Fixes #1525\r\n\r\n* Change from admin to approvers teams\r\n\r\n* Introduce new file black.list for blacklist content\r\n\r\n* Add \"pihole -g -b\" to *only* update black.list (saves a bunch of time when adding/changing only blacklisted files - won'tdownload lal lists, but only processes the blacklist and restars dnsmasq)\r\n\r\n* Remove useless cat\r\n\r\n* Improve displayed messages and overall logic\r\n\r\n* Disable black.list on \"pihole disable\"\r\n\r\n* cp + rm === mv (well, almost)","distinct":false,"url":"https://api.github.com/repos/PromoFaux/pi-hole/commits/ecde2225122904a89543712ec8f2b0fd1da26ff6"},{"sha":"1db03a10d778b198dbdb79f2a8cd95ad1ee49eca","author":{"name":"Adam Warner","email":"6205ab7af74a8621f9a77584ce23662521621d99@users.noreply.github.com"},"message":"Merge branch 'master' into developmentNew","distinct":false,"url":"https://api.github.com/repos/PromoFaux/pi-hole/commits/1db03a10d778b198dbdb79f2a8cd95ad1ee49eca"},{"sha":"218aa03f05436f9e0cce4d78f89da92c91f5137f","author":{"name":"Adam Warner","email":"8644032b318bb67907dd349051d793bd7ced6774@rner.email"},"message":"Merge branch 'developmentNew' of https://github.com/pi-hole/pi-hole into developmentNew","distinct":false,"url":"https://api.github.com/repos/PromoFaux/pi-hole/commits/218aa03f05436f9e0cce4d78f89da92c91f5137f"},{"sha":"7d56e2a9371e952b5ffea24a298615a73e098b11","author":{"name":"Adam Warner","email":"8644032b318bb67907dd349051d793bd7ced6774@rner.email"},"message":"`FTL` has an `L` in it, innit?\n\nSigned-off-by: Adam Warner <adamw@rner.email>","distinct":false,"url":"https://api.github.com/repos/PromoFaux/pi-hole/commits/7d56e2a9371e952b5ffea24a298615a73e098b11"},{"sha":"eb8333c7728c5093850abad79a311d7ee136e51b","author":{"name":"Adam Warner","email":"8644032b318bb67907dd349051d793bd7ced6774@rner.email"},"message":"Merge branch 'development' into developmentNew","distinct":false,"url":"https://api.github.com/repos/PromoFaux/pi-hole/commits/eb8333c7728c5093850abad79a311d7ee136e51b"},{"sha":"30526bb0836d832d4ee69c9b335b33842b69d0ee","author":{"name":"Adam Warner","email":"6205ab7af74a8621f9a77584ce23662521621d99@users.noreply.github.com"},"message":"Merge pull request #1 from PromoFaux/developmentNew\n\nDevelopment new","distinct":true,"url":"https://api.github.com/repos/PromoFaux/pi-hole/commits/30526bb0836d832d4ee69c9b335b33842b69d0ee"}]}
{"actor":{"display_login":"PromoFaux"}}