mirror of
https://github.com/Luzifer/dns.git
synced 2024-11-09 22:50:06 +00:00
25 lines
367 B
Bash
25 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
|