File 010_pi-hole_logrotate_config.patch of Package pi-hole

diff -uNr pi-hole.orig/advanced/Templates/logrotate pi-hole/advanced/Templates/logrotate
--- pi-hole.orig/advanced/Templates/logrotate	2025-08-09 19:47:37.643060497 +0200
+++ pi-hole/advanced/Templates/logrotate	2025-08-09 19:50:38.462569393 +0200
@@ -1,32 +1,32 @@
 /var/log/pihole/pihole.log {
-    # su #
-    daily
-    copytruncate
-    rotate 5
-    compress
-    delaycompress
-    notifempty
-    nomail
+	su root pihole	
+	daily
+	copytruncate
+	rotate 31
+	compress
+	notifempty
+	nomail
+	dateext
 }
 
-/var/log/pihole/FTL.log {
-    # su #
-    weekly
-    copytruncate
-    rotate 3
-    compress
-    delaycompress
-    notifempty
-    nomail
+/var/log/pihole/FTL.log /var/log/pihole/pihole-FTL.log {
+	su root pihole	
+	daily
+	copytruncate
+	rotate 31
+	compress
+	notifempty
+	nomail
+	dateext
 }
 
 /var/log/pihole/webserver.log {
-    # su #
-    weekly
-    copytruncate
-    rotate 3
-    compress
-    delaycompress
-    notifempty
-    nomail
+	su root pihole	
+	daily
+	copytruncate
+	rotate 31
+	compress
+	notifempty
+	nomail
+	dateext
 }
openSUSE Build Service is sponsored by