Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Simple fix for podman to work; whitespace clean up #396

Merged
merged 1 commit into from
May 18, 2023

Conversation

mwoodson
Copy link
Contributor

@mwoodson mwoodson commented May 9, 2023

Simple podman fix. Seems like an oversight.

Also cleaned up some extra whitespaces.

@vmstan vmstan changed the base branch from master to 4.0.5 May 18, 2023 15:42
@vmstan vmstan merged commit ccec6a9 into vmstan:4.0.5 May 18, 2023
@mwoodson mwoodson deleted the podman-fix branch May 18, 2023 16:24
vmstan added a commit that referenced this pull request Jul 10, 2023
* Simple fix for podman to work; whitespace clean up (#396)

* Fix set_pihole_exec to match full container names (#390)

Fix set_pihole_exec to match full container names, rather
than their substrings, by adding begin and end anchors to
the 'docker ps -qf name=PATTERN' being used.

Signed-off-by: William Blew <[email protected]>

* Fix the detect_xxx_pihole routines. (#389)

Fix the detect_xxx_pihole routines to respect the configurable
PIHOLE_CONTAINER_IMAGE variable.

The ghcr.io/pi-hole/pihole image is also released by the Pi-hole
project, just as the pihole/pihole image.

This commit enables ghcr.io image usage by adding the following
to the /etc/gravity-sync.conf file:

PIHOLE_CONTAINER_IMAGE='ghcr.io/pi-hole/pihole'

Signed-off-by: William Blew <[email protected]>
Co-authored-by: Michael Stanclift <[email protected]>

* Make check for sudo privileges more accurate (#375)

* Make check for sudo privileges more accurate

The existing method of checking if the Gravity Sync user has sudo rights is flawed, in that it will break if the user is not in the `sudo` group (on Debian based distros) or the `wheel` group (on CentOS/RHEL distros).

A more accurate way of checking if a user has sudo privileges is using `sudo --validate` or `sudo -n true`; both of which return `0` if the user has sudo privileges.

This commit updates the `validate_sudo_status` function to use `sudo --validate` so that Gravity Sync is actually checking if a user has sudo privileges, rather than just checking group memberships.

* Fix bug in patch

---------

Co-authored-by: llamalump <[email protected]>

* Fix: GS_SSH_PORT can be changed now via  'gravity-sync config <NEW_PORT>' when already set in gravity-sync.conf. Fix: Initial sync of static DHCP and CNAME to 'empty pihole' now works. Enhancement: Various settings now settable via ENV vars (for Docker) (#384)

* SSH custom port: Fixed bug, where GS_SSH_PORT is overwritten by gravity-sync.conf (if set) when calling 'gravity-sync config NEW_SSH_PORT'. Docker enhancements: Made many config-variables settable via ENV vars

* Fixing initial push of CNAME and Static DHCP entries to an 'empty' remote (fixes #377)

* Removing unecessary 'export' keyword

* Fixed 'md5_recheck' for the bug #377

* Adding ENV documentation

* Fixing typo

* Fixed type and nicely formatted tables with emacs

---------

Co-authored-by: Michael Stanclift <[email protected]>

* Update VERSION

* Update gravity-sync

---------

Signed-off-by: William Blew <[email protected]>
Co-authored-by: Matt Woodson <[email protected]>
Co-authored-by: William Blew <[email protected]>
Co-authored-by: Seb Thomson <[email protected]>
Co-authored-by: llamalump <[email protected]>
Co-authored-by: Klaus Zipfel <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants