Merge pull request #978 from pi-hole/fix-2567a9b

Don't attempt to chmod pihole-FTL.db if it does not exist
This commit is contained in:
Adam Warner 2022-01-08 17:31:52 +00:00 committed by GitHub
commit c6e859723c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ prepare_configs() {
# Also similar to preflights for FTL https://github.com/pi-hole/pi-hole/blob/master/advanced/Templates/pihole-FTL.service
chown pihole:root /etc/lighttpd
chown pihole:pihole "${PI_HOLE_CONFIG_DIR}/pihole-FTL.conf" "/var/log/pihole"
chmod 644 "${PI_HOLE_CONFIG_DIR}/pihole-FTL.conf" "${PI_HOLE_CONFIG_DIR}/pihole-FTL.db"
chmod 644 "${PI_HOLE_CONFIG_DIR}/pihole-FTL.conf"
if [[ -e "${PI_HOLE_CONFIG_DIR}/pihole-FTL.db" ]]; then
chown pihole:pihole "${PI_HOLE_CONFIG_DIR}/pihole-FTL.db"
chmod 644 "${PI_HOLE_CONFIG_DIR}/pihole-FTL.db"