DNS is important! Dnsmasq should come up early and not rely on gravity update.

This commit is contained in:
Matthew Kennedy 2017-01-07 21:50:39 -07:00
parent 6c90bab0cf
commit 0d87eaeb58
1 changed files with 9 additions and 6 deletions

View File

@ -153,17 +153,20 @@ test_framework_stubbing() {
}
main() {
echo -n '::: Starting up DNS and Webserver ...'
pihole restartdns # Just get DNS up. The webserver is down!!!
IMAGE="$1"
case $IMAGE in
case $IMAGE in # Setup webserver
"alpine")
gravity.sh # dnsmasq start included
php-fpm
nginx
php-fpm
nginx
;;
"debian")
gravity.sh # dnsmasq start included
service lighttpd start
service lighttpd start
;;
esac
gravity.sh # Finally lets update and be awesome.
tail -F "${WEBLOGDIR}"/*.log /var/log/pihole.log
}