1
0
Fork 0
mirror of https://github.com/Luzifer/dns.git synced 2024-11-09 22:50:06 +00:00
dns/build.sh

26 lines
367 B
Bash
Raw Normal View History

2018-01-30 22:26:44 +00:00
#!/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