Merge pull request #19491 from Homebrew/service_any_installed_prefix

formula: use any_installed_prefix for service paths
This commit is contained in:
Mike McQuaid 2025-03-14 17:28:51 +00:00 committed by GitHub
commit a20b5c5d67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1220,15 +1220,15 @@ class Formula
# The generated launchd {.service} file path.
sig { returns(Pathname) }
def launchd_service_path = opt_prefix/"#{plist_name}.plist"
def launchd_service_path = (any_installed_prefix || opt_prefix)/"#{plist_name}.plist"
# The generated systemd {.service} file path.
sig { returns(Pathname) }
def systemd_service_path = opt_prefix/"#{service_name}.service"
def systemd_service_path = (any_installed_prefix || opt_prefix)/"#{service_name}.service"
# The generated systemd {.timer} file path.
sig { returns(Pathname) }
def systemd_timer_path = opt_prefix/"#{service_name}.timer"
def systemd_timer_path = (any_installed_prefix || opt_prefix)/"#{service_name}.timer"
# The service specification of the software.
sig { returns(Homebrew::Service) }