Skip to content

Commit

Permalink
Merge pull request #18574 from dawidd6/podman-root
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab authored Oct 15, 2024
2 parents b72efbd + c16d2d2 commit 4d4f3a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ source "${HOMEBREW_LIBRARY}/Homebrew/utils/helpers.sh"
check-run-command-as-root() {
[[ "${EUID}" == 0 || "${UID}" == 0 ]] || return

# Allow Azure Pipelines/GitHub Actions/Docker/Concourse/Kubernetes to do everything as root (as it's normal there)
# Allow Azure Pipelines/GitHub Actions/Docker/Podman/Concourse/Kubernetes to do everything as root (as it's normal there)
[[ -f /.dockerenv ]] && return
[[ -f /run/.containerenv ]] && return
[[ -f /proc/1/cgroup ]] && grep -E "azpl_job|actions_job|docker|garden|kubepods" -q /proc/1/cgroup && return

# Homebrew Services may need `sudo` for system-wide daemons.
Expand Down

0 comments on commit 4d4f3a2

Please sign in to comment.