mirror of
https://github.com/Luzifer/dns.git
synced 2024-11-14 08:52:47 +00:00
26 lines
367 B
Bash
26 lines
367 B
Bash
|
#!/bin/bash
|
||
|
set -euxo pipefail
|
||
|
|
||
|
IFS=$'\n'
|
||
|
|
||
|
GOPKGS=(
|
||
|
'github.com/coredns/coredns'
|
||
|
'github.com/Luzifer/alias'
|
||
|
)
|
||
|
|
||
|
for pkg in ${GOPKGS[@]}; do
|
||
|
go get -d -v "${pkg}"
|
||
|
done
|
||
|
|
||
|
PLUGINS=(
|
||
|
'/^file:file/ i alias:github.com/Luzifer/alias'
|
||
|
)
|
||
|
|
||
|
cd /go/src/github.com/coredns/coredns
|
||
|
for insert in ${PLUGINS[@]}; do
|
||
|
sed -i "${insert}" plugin.cfg
|
||
|
done
|
||
|
|
||
|
go generate
|
||
|
go install
|