mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-05-05 12:32:34 +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 {
|
hosts {
|
||||||
fallthrough
|
fallthrough
|
||||||
}
|
}
|
||||||
proxy . 8.8.8.8:53 8.8.4.4:53 {
|
forward . https://8.8.8.8:53 https://8.8.4.4:53
|
||||||
protocol https_google
|
|
||||||
}
|
|
||||||
cache
|
cache
|
||||||
errors
|
errors
|
||||||
}
|
}
|
||||||
|
@ -48,7 +46,7 @@ class Coredns < Formula
|
||||||
<string>#{plist_name}</string>
|
<string>#{plist_name}</string>
|
||||||
<key>ProgramArguments</key>
|
<key>ProgramArguments</key>
|
||||||
<array>
|
<array>
|
||||||
<string>#{opt_sbin}/coredns</string>
|
<string>#{opt_bin}/coredns</string>
|
||||||
<string>-conf</string>
|
<string>-conf</string>
|
||||||
<string>#{etc}/coredns/Corefile</string>
|
<string>#{etc}/coredns/Corefile</string>
|
||||||
</array>
|
</array>
|
||||||
|
@ -68,6 +66,6 @@ class Coredns < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
assert_match "CoreDNS-#{version}", shell_output("#{sbin}/coredns -version")
|
assert_match "CoreDNS-#{version}", shell_output("#{bin}/coredns -version")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue