From 69f5a0155954224e3ef36a0685b97eb5ebfdb905 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 18 Oct 2026 19:14:48 +0200 Subject: [PATCH] Set `HOME=/` in the cron file so jobs of the `pihole` user run on cronie The `pihole` user is created without an existing home directory. cronie changes into the home of the job user and drops the job when that fails, so the gravity update and the update checker never ran there. Setting `HOME=/` in the cron file fixes this for existing installs too, as the file is rewritten on update. Signed-off-by: DL6ER --- advanced/Templates/pihole.cron | 3 +++ 1 file changed, 3 insertions(+) diff --git a/advanced/Templates/pihole.cron b/advanced/Templates/pihole.cron index d6c4f04d..ed51406b 100644 --- a/advanced/Templates/pihole.cron +++ b/advanced/Templates/pihole.cron @@ -14,6 +14,9 @@ # is updated or re-installed. Please make any changes to the appropriate crontab # or other cron file snippets. +# The pihole user has no home directory, cronie refuses to run its jobs without one +HOME=/ + # Pi-hole: Update the ad sources once a week on Sunday at a random time in the # early morning. Download any updates from the adlists # Squash output to log, then splat the log to stdout on error to allow for