diff options
author | DL6ER <dl6er@dl6er.de> | 2019-01-09 21:26:19 +0300 |
---|---|---|
committer | DL6ER <dl6er@dl6er.de> | 2019-01-09 21:26:19 +0300 |
commit | f360959efc465233d57d4f0bbc5b385bbbbfea9c (patch) | |
tree | 9ca4bc2cefc4a18f08fc5d7ec649f5f44c35e07f /automated install/basic-install.sh | |
parent | 465589c0fd2e76dddbfa3ac65619e58ee2e23c69 (diff) |
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>
Diffstat (limited to 'automated install/basic-install.sh')
-rwxr-xr-x | automated install/basic-install.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 990b1f34..132a96e5 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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 |