mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-05-05 20:42:33 +02:00
Fix mistook path sbin
to bin
, fix Corefile directive proxy
to forward
for Homebrew. (#195)
This commit is contained in:
parent
8fb8871a30
commit
f0409d4492
1 changed files with 3 additions and 5 deletions
|
@ -11,9 +11,7 @@ class Coredns < Formula
|
|||
hosts {
|
||||
fallthrough
|
||||
}
|
||||
proxy . 8.8.8.8:53 8.8.4.4:53 {
|
||||
protocol https_google
|
||||
}
|
||||
forward . https://8.8.8.8:53 https://8.8.4.4:53
|
||||
cache
|
||||
errors
|
||||
}
|
||||
|
@ -48,7 +46,7 @@ class Coredns < Formula
|
|||
<string>#{plist_name}</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>#{opt_sbin}/coredns</string>
|
||||
<string>#{opt_bin}/coredns</string>
|
||||
<string>-conf</string>
|
||||
<string>#{etc}/coredns/Corefile</string>
|
||||
</array>
|
||||
|
@ -68,6 +66,6 @@ class Coredns < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
assert_match "CoreDNS-#{version}", shell_output("#{sbin}/coredns -version")
|
||||
assert_match "CoreDNS-#{version}", shell_output("#{bin}/coredns -version")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue