Merge pull request #479 from npezza93/main

Loosen superuser check to match docker-installs script check
This commit is contained in:
Donal McBreen
2023-10-30 08:21:30 +00:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -16,6 +16,6 @@ class Kamal::Commands::Docker < Kamal::Commands::Base
# Do we have superuser access to install Docker and start system services?
def superuser?
[ '[ "${EUID:-$(id -u)}" -eq 0 ]' ]
[ '[ "${EUID:-$(id -u)}" -eq 0 ] || command -v sudo >/dev/null || command -v su >/dev/null' ]
end
end