About pihole updatechecker


root@johnywalker:/var/log# pihole -v
Pi-hole version is v4.3.2 (Latest: v4.3.2)
AdminLTE version is v4.3.2 (Latest: v4.3.2)
FTL version is v4.3.1 (Latest: v4.3.1)

more /etc/cron.d/pihole

Pi-hole: Grab local version and branch every 10 minutes
*/10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local > /var/log/see.log

Pi-hole: Grab remote version every 24 hours
35 18 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
@reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot

i never understood “pihole updatechecker local/remote” ,although i read a lot of articles.

pihole updatechecker local read ;

root@johnywalker:/var/log# more /etc/pihole/localbranches
master master master
root@johnywalker:/var/log# more /etc/pihole/localversions
v4.3.2-0-ge41c4b5 v4.3.2-0-g38d8e77 v4.3.1

pihole updatechecker remote read ;

root@johnywalker:/var/log# more /etc/pihole/GitHubVersions
v4.3.2 v4.3.2 v4.3.1

  • i know above it.But What is happening these command in cron ?

i add pihole updatechecker local> /var/log/see.log ,but i can not see log .(This log file is empty).

  • if the cron checking for update, i did not took an information" out of date". ??

  • how do I know that all my configuration files are not going to github.every 10 minutes? is it safe ?

  • is it necessary cron ?

Thank you ver much for your help

Please help me

You can read the code. The function is called here:

And this is the script that runs.

Yes. If it were not necessary, it would not be included in the code.