mirror of
https://github.com/sujiba/pihole-unbound-hyperlocal.git
synced 2025-07-10 13:55:12 +02:00
migrate to pi-hole v6 and alpine container image
This commit is contained in:
parent
385a54f04d
commit
4b181a8a9f
18 changed files with 237 additions and 280 deletions
20
docker-build/unbound-entrypoint.sh
Normal file
20
docker-build/unbound-entrypoint.sh
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Start unbound
|
||||
echo " [i] Starting Unbound"
|
||||
/usr/sbin/unbound -d -c /etc/unbound/unbound.conf.d/pihole.conf &
|
||||
# Get most recent process id for error checking
|
||||
UNBOUND_PID=$!
|
||||
|
||||
# Wait for a second and check if unbound is running
|
||||
sleep 1
|
||||
if [ -d "/proc/$UNBOUND_PID" ];
|
||||
then
|
||||
echo " [i] Unbound started successfully."
|
||||
else
|
||||
echo " [i] Unbound startup failed."
|
||||
echo " [i] Take a look at /var/log/unbound/unbound.log"
|
||||
fi
|
||||
|
||||
# Start pi-hole
|
||||
exec /usr/bin/start.sh
|
Loading…
Add table
Add a link
Reference in a new issue