mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-21 06:56:53 +02:00
Merge pull request #1138 from pi-hole/macvendor-mounted-volume
download macvendor.db on container start if it is missing
This commit is contained in:
commit
970bc62836
|
@ -69,6 +69,12 @@ prepare_configs() {
|
||||||
if [[ -e "${setupVars}" ]]; then
|
if [[ -e "${setupVars}" ]]; then
|
||||||
cp -f "${setupVars}" "${setupVars}.update.bak"
|
cp -f "${setupVars}" "${setupVars}.update.bak"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#If the user has volume mounted /etc/pihole, then macvendor.db may be missing. See: https://github.com/pi-hole/docker-pi-hole/issues/1137
|
||||||
|
if [[ ! -f "/etc/pihole/macvendor.db" ]]; then
|
||||||
|
echo "Downloading missing macvendor.db"
|
||||||
|
curl -sSL "https://ftl.pi-hole.net/macvendor.db" -o "/etc/pihole/macvendor.db" || true
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
validate_env() {
|
validate_env() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user