Skip to content
Snippets Groups Projects
Unverified Commit bc320ad2 authored by Tom Forbes's avatar Tom Forbes Committed by GitHub
Browse files

Support running the Linuxbrew docker image in Kubernetes

parent afe60d66
No related branches found
No related tags found
No related merge requests found
...@@ -375,8 +375,8 @@ fi ...@@ -375,8 +375,8 @@ fi
check-run-command-as-root() { check-run-command-as-root() {
[[ "$(id -u)" = 0 ]] || return [[ "$(id -u)" = 0 ]] || return
# Allow Azure Pipelines/Docker to do everything as root (as it's normal there) # Allow Azure Pipelines/Docker/Kubernetes to do everything as root (as it's normal there)
[[ -f /proc/1/cgroup ]] && grep -E "azpl_job|docker" -q /proc/1/cgroup && return [[ -f /proc/1/cgroup ]] && grep -E "azpl_job|docker|kubepods" -q /proc/1/cgroup && return
# Homebrew Services may need `sudo` for system-wide daemons. # Homebrew Services may need `sudo` for system-wide daemons.
[[ "$HOMEBREW_COMMAND" = "services" ]] && return [[ "$HOMEBREW_COMMAND" = "services" ]] && return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment