mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-26 00:59:07 +02:00
Mop up some other references
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
b7016668b4
commit
1900d567c9
|
@ -24,7 +24,7 @@ services:
|
||||||
- './etc-pihole:/etc/pihole'
|
- './etc-pihole:/etc/pihole'
|
||||||
- './etc-dnsmasq.d:/etc/dnsmasq.d'
|
- './etc-dnsmasq.d:/etc/dnsmasq.d'
|
||||||
# run `touch ./var-log/pihole.log` first unless you like errors
|
# run `touch ./var-log/pihole.log` first unless you like errors
|
||||||
# - './var-log/pihole.log:/var/log/pihole.log'
|
# - './var-log/pihole.log:/var/log/pihole/pihole.log'
|
||||||
# Recommended but not required (DHCP needs NET_ADMIN)
|
# Recommended but not required (DHCP needs NET_ADMIN)
|
||||||
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
|
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
|
||||||
cap_add:
|
cap_add:
|
||||||
|
|
|
@ -28,7 +28,7 @@ if [ -z "$SKIPGRAVITYONBOOT" ] || [ ! -e "${gravityDBfile}" ]; then
|
||||||
echo " Ignoring SKIPGRAVITYONBOOT on this occaision."
|
echo " Ignoring SKIPGRAVITYONBOOT on this occaision."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo '@reboot root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log' > /etc/cron.d/gravity-on-boot
|
echo '@reboot root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole/pihole_updateGravity.log || cat /var/log/pihole/pihole_updateGravity.log' > /etc/cron.d/gravity-on-boot
|
||||||
else
|
else
|
||||||
echo " Skipping Gravity Database Update."
|
echo " Skipping Gravity Database Update."
|
||||||
[ ! -e /etc/cron.d/gravity-on-boot ] || rm /etc/cron.d/gravity-on-boot &>/dev/null
|
[ ! -e /etc/cron.d/gravity-on-boot ] || rm /etc/cron.d/gravity-on-boot &>/dev/null
|
||||||
|
|
|
@ -41,5 +41,5 @@ capsh --inh=${CAP_STR:1} --addamb=${CAP_STR:1} --user=$DNSMASQ_USER --keep=1 --
|
||||||
|
|
||||||
# Notes on above:
|
# Notes on above:
|
||||||
# - DNSMASQ_USER default of pihole is in Dockerfile & can be overwritten by runtime container env
|
# - DNSMASQ_USER default of pihole is in Dockerfile & can be overwritten by runtime container env
|
||||||
# - /var/log/pihole*.log has FTL's output that no-daemon would normally print in FG too
|
# - /var/log/pihole/pihole*.log has FTL's output that no-daemon would normally print in FG too
|
||||||
# prevent duplicating it in docker logs by sending to dev null
|
# prevent duplicating it in docker logs by sending to dev null
|
||||||
|
|
Loading…
Reference in New Issue
Block a user