mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
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>
This commit is contained in:
parent
465589c0fd
commit
f360959efc
1 changed files with 4 additions and 0 deletions
|
@ -2174,6 +2174,10 @@ FTLinstall() {
|
||||||
# If we downloaded binary file (as opposed to text),
|
# If we downloaded binary file (as opposed to text),
|
||||||
if sha1sum --status --quiet -c "${binary}".sha1; then
|
if sha1sum --status --quiet -c "${binary}".sha1; then
|
||||||
printf "transferred... "
|
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 FTL
|
||||||
stop_service pihole-FTL &> /dev/null
|
stop_service pihole-FTL &> /dev/null
|
||||||
# Install the new version with the correct permissions
|
# Install the new version with the correct permissions
|
||||||
|
|
Loading…
Reference in a new issue