move chmod/chown of macvendor.db to pihole-FTL.service

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2021-08-03 22:39:33 +01:00
parent 1358209a9a
commit 913dcead7f
No known key found for this signature in database
GPG key ID: 872950F3ECF2B173
2 changed files with 2 additions and 3 deletions

View file

@ -2336,8 +2336,6 @@ FTLinstall() {
# Before stopping FTL, we download the macvendor database
curl -sSL "https://ftl.pi-hole.net/macvendor.db" -o "${PI_HOLE_CONFIG_DIR}/macvendor.db" || true
chmod 644 "${PI_HOLE_CONFIG_DIR}/macvendor.db"
chown pihole:pihole "${PI_HOLE_CONFIG_DIR}/macvendor.db"
# Stop pihole-FTL service if available
stop_service pihole-FTL &> /dev/null