DNS is important! Dnsmasq should come up early and not rely on gravity update.
This commit is contained in:
parent
6c90bab0cf
commit
0d87eaeb58
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue