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:
commit
c6e859723c
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue