Use pihole logrotate in cron job

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2025-10-21 20:31:53 +02:00
parent 9cd0e4745e
commit a112f2ad40
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
59 1 * * 0 PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole/pihole_updateGravity.log || cat /var/log/pihole/pihole_updateGravity.log
00 00 * * * PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole flush once quiet
00 00 * * * PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole logrotate quiet
59 17 * * * PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker

View File

@@ -42,7 +42,7 @@ start() {
# Install additional packages inside the container if requested
install_additional_packages
# Start crond for scheduled scripts (logrotate, pihole flush, gravity update etc)
# Start crond for scheduled scripts (logrotate, gravity update etc)
start_cron
# Install the logrotate config file