unboundnsd/unbound/entrypoint.sh

4 lines
161 B
Bash
Raw Normal View History

2016-09-18 23:24:20 +00:00
#!/bin/sh
sed "s/{{nsd}}/$(grep nsd /etc/hosts | awk -F' ' '{print $1}' | head -1)/g" /unbound-local.conf > /etc/unbound/unbound-local.conf
2016-09-18 23:24:20 +00:00
/usr/sbin/unbound $@