Download macvendor database from ftl.pi-hole.net when downloading a new FTL binary. Users who want to update the database more frequently than on each FTL release can use the python script from the FTL repository to generate the database themselves. The macvendor database is an optional component so a failing download is no reason to interrupt the installer.

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/2587/head
DL6ER 5 years ago
parent 465589c0fd
commit f360959efc
No known key found for this signature in database
GPG Key ID: FB60471F0575164A

@ -2174,6 +2174,10 @@ FTLinstall() {
# If we downloaded binary file (as opposed to text),
if sha1sum --status --quiet -c "${binary}".sha1; then
printf "transferred... "
# Before stopping FTL, we download the macvendor database
curl -sSL "https://ftl.pi-hole.net/macvendor.db" -o "${PI_HOLE_CONFIG_DIR}/macvendor.db"
# Stop FTL
stop_service pihole-FTL &> /dev/null
# Install the new version with the correct permissions

Loading…
Cancel
Save