Fresh install v4.1.1 - error in /opt/pihole/updatecheck.sh

A fresh install of Raspbian (latest version) generates the following error mail during installation:

/opt/pihole/updatecheck.sh: line 42: /etc/pihole/setupVars.conf: No such file or directory

For those who wonder where the mail message comes from:
mail messages are activated by following the install mail (section 4 / 9) from this manual.

Did the installation process complete? If not, what was the output of the installer?

Installation completed successfully
if you look @ the content of /opt/pihole/updatecheck.sh, line 42 isn't, at least I don't think it is, a valid command:

# Source the setupvars config file
# shellcheck disable=SC1091
. /etc/pihole/setupVars.conf

I suppose the period (.) should be a comment (#)

That period is expected, it loads the settings.

OK, good to know, however, where does the error come from?

edit
the mail, as it arrived...


Is it possible the cron job runs before setupVars.conf exists?
/edit

The cron job should not have been installed unless Pi-hole was installed, and when Pi-hole is installed setupVars.conf is installed. Does the file exist?

Yes, the file exists
I got the error message only once, that's why I assumed the cron job existed before setupVars.conf existed.

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