You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-wireguard/root/etc/services.d/coredns/run

11 lines
213 B
Plaintext

#!/usr/bin/with-contenv bash
cd /config/coredns
if netstat -apn | grep -q ":53 "; then
echo "Another service is using port 53, disabling CoreDNS"
sleep infinity
else
exec \
/app/coredns -dns.port=53
fi