Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync: master to development #1

Open
wants to merge 141 commits into
base: development
Choose a base branch
from
Open

sync: master to development #1

wants to merge 141 commits into from

Conversation

github-actions[bot]
Copy link

sync-branches: New code has just landed in master, so let's bring development up to speed!

PromoFaux and others added 30 commits September 29, 2021 21:45
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Fix documentation; add some missing zones
Signed-off-by: Christian König <[email protected]>
…pi-hole#4421)

* Only change the recommendation to use apt

Signed-off-by: Christian König <[email protected]>
* Allow users to skip setting static IP adresss

Signed-off-by: Christian König <[email protected]>
…e#3191)

* add test for file permissions of $webroot

Signed-off-by: pvogt09 <[email protected]>

* changes sudo to su for running command as user www-data

Signed-off-by: pvogt09 <[email protected]>

* installs PIHOLE_WEB_DEPS to create LIGHTTPD_USER

Signed-off-by: pvogt09 <[email protected]>

* changes stdout to rc

Signed-off-by: pvogt09 <[email protected]>

* use installPihole instead of installPiholeWeb in test

Signed-off-by: pvogt09 <[email protected]>

* try installation process with main

Signed-off-by: pvogt09 <[email protected]>

* mock systemctl

Signed-off-by: pvogt09 <[email protected]>

* removes stickler errors

Signed-off-by: pvogt09 <[email protected]>

* start lighttpd and make webpage test optional

Signed-off-by: pvogt09 <[email protected]>

* test all files and directories in $webroot

Signed-off-by: pvogt09 <[email protected]>

* fix stickler and codefactor warnings

Signed-off-by: pvogt09 <[email protected]>

* set permission for /var/cache if it did not exist before

Signed-off-by: pvogt09 <[email protected]>

* add test case for pihole files

Signed-off-by: pvogt09 <[email protected]>

* fix stickler errors

Signed-off-by: pvogt09 <[email protected]>

* revert "set permission for /var/cache if it did not exist before" and make lighttpd start work

Signed-off-by: pvogt09 <[email protected]>

* add --add-cap=NET_ADMIN to enable FTL start

Signed-off-by: pvogt09 <[email protected]>

* specify DNS server for cURL

Signed-off-by: pvogt09 <[email protected]>

* check files created by FTL

Signed-off-by: pvogt09 <[email protected]>

* reorder code and change nameserver in /etc/resolv.conf

Signed-off-by: pvogt09 <[email protected]>

* resolve with dig instead of relying on /etc/resolv.conf

Signed-off-by: pvogt09 <[email protected]>

* set IP to 127.0.0.1 in setupVars.conf for blockpage tests

Signed-off-by: pvogt09 <[email protected]>

* resolve domain with dig and remove debug output

Signed-off-by: pvogt09 <[email protected]>

* fix stickler errors

Signed-off-by: pvogt09 <[email protected]>

* no git pull in Github Action runs for pull requests

Signed-off-by: pvogt09 <[email protected]>

* --cap-add=ALL test

Signed-off-by: pvogt09 <[email protected]>

* fix stickler errors

Signed-off-by: pvogt09 <[email protected]>

* remove debug code

Signed-off-by: pvogt09 <[email protected]>

* update_repo patch for CentOS 7 in Github Actions

Signed-off-by: pvogt09 <[email protected]>

* removes TODOs and stickler warnings

Signed-off-by: pvogt09 <[email protected]>

* adds trailing slash to domain

Signed-off-by: pvogt09 <[email protected]>

* use only first result from dig

Signed-off-by: pvogt09 <[email protected]>

* domain name resolution does not work reliably in docker container

Signed-off-by: pvogt09 <[email protected]>

* repair executable permission

Signed-off-by: pvogt09 <[email protected]>

* Create mock_command_passthrough that allows intercepting of specific arguments - everything else is passed through to the proper command. Use this new command instead of making changes in basic-install.sh to make the tests pass.

Signed-off-by: Adam Warner <[email protected]>

Co-authored-by: Adam Warner <[email protected]>
* unpin the requirements and update all to latest available - needs more work still. see notes in `def host()`

Signed-off-by: Adam Warner <[email protected]>

* fix py3 monkey patch of testinfra docker using bash

Signed-off-by: Adam Hill <[email protected]>

* update the other test files to use `host` instead of `Pihole`
Address some sticklr and codefactor
update python version from 3.7 to 3.8
preload `git` onto the centos/fedora test images, and switch which with command -v in the passthrough mock
testinfra is deprecated, use pytest-testinfra

Signed-off-by: Adam Warner <[email protected]>

Co-authored-by: Adam Hill <[email protected]>
This solves the issue reported here: pi-hole#4196
It replaces the other suggested solution here: pi-hole#4197

The benefit of using a fixed/limited list height, compared to allowing larger whiptail/dialogue dimension, is that it works on small screens as well, where the screen or console size itself is too small to hold the interface list + text above + whiptail frame.

It the amount of list elements exceeds the defined list height, automatically a visual scroll bar is added and the list can be scrolled with up/down pageup/pagedown buttons, hence it is generally not required to adjust a list height based on the amount of elements. The fixed height of "6" is chosen since all other "--radiolist" calls use this fixed height as well, it fits and looks good within a 20 rows high whiptail dialogue, and in the common Pi-hole use cases there are no more than 6 network interfaces.

Signed-off-by: MichaIng <[email protected]>
Use a fixed list height for network interface selection
Done with the help of beautysh (a python-based bash formatter)

Signed-off-by: jbzdarkid <[email protected]>
Clean up bash script formatting
Fix generated /etc/os-release file in OS check test
Co-authored-by: abesnier <[email protected]>
Signed-off-by: Christian König <[email protected]>
* Some shellchecks in basic-install.sh

Signed-off-by: ChillerDragon <[email protected]>

* Use more explicit grep (thanks to @MichaIng)

Signed-off-by: ChillerDragon <[email protected]>
* Fix pi-hole#4279

Signed-off-by: Subhaditya Nath <[email protected]>

* Don't ignore exit code of version.sh

If it exits with a non-zero return code, that means some error occurred,
and so it shouldn't be ignored.

Signed-off-by: Subhaditya Nath <[email protected]>

* Implement changes suggested by @Michalng

Signed-off-by: Subhaditya Nath <[email protected]>

* Implement changes suggested by @PromoFaux

Signed-off-by: Subhaditya Nath <[email protected]>

* Always source /etc/pihole/setupVars.conf

pi-hole#4370 (comment)

Co-authored-by: Adam Warner <[email protected]>
DL6ER and others added 29 commits January 30, 2022 21:09
…or it. Can be used in future to organise re/commonly-used code

Signed-off-by: Adam Warner <[email protected]>
Fix updating based on tags on older git versions by doing a full fetch
Replace value for BLOCKING_ENABLED, add if it does not already exist
…ite3

Replace calls to sqlite3 by calls to pihole-FTL sqlite3
Switch from centos8 to centos8:stream base image for centos 8 tests
Signed-off-by: Christian König <[email protected]>

Remove double https://

Signed-off-by: Christian König <[email protected]>
add parameter to set filename for teleporter
…in case of manual entries with mixed case having been added

Signed-off-by: Adam Warner <[email protected]>
Use case insensitive deletion when removing custom CNAME/DNS records
Signed-off-by: Dan Schaper <[email protected]>
Signed-off-by: Dan Schaper <[email protected]>
co-authored-by: RD WebDesign <[email protected]>
Signed-off-by: Dan Schaper <[email protected]>
Signed-off-by: Dan Schaper <[email protected]>
Wrap touch calls with if/then guards for Buster docker.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.