Error message while executing cron command pihole flush once quiet

Since version v3.3.1, piholeLogFlush.sh generates an error when there is no FTL configuration file.

sed: can't read /etc/pihole/pihole-FTL.conf: No such file or directory

This is because piholeLogFlush.sh contains a sed command to determine the FTL database location, however, it doesn't anticipate there may not be an FTL configuration file (default configuration).

workaround:
Create /etc/pihole-FTL.conf, containing at least one line:

DBFILE=/etc/pihole/pihole-FTL.db

Thanks for the report.

We should probably just create pihole-FTL.conf on install, even if it's just an empty file. Should reduce confusion of people having to make the file if it doesn't exist when they want to configure the file.

2 Likes

The error message should be silenced now

I agree, shall we add a dummy file to the repo and copy it over during pihole -r if the conf file does not exist yet?

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.