From 26f6de41d2759cb256f5521b4cf7f9b4f9243aa7 Mon Sep 17 00:00:00 2001 From: "M. Rehan" Date: Thu, 4 Jul 2024 20:06:08 +0500 Subject: [PATCH] Fix logrotate to work properly (#13978) --- src/freenas/debian/preinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freenas/debian/preinst b/src/freenas/debian/preinst index bfc30e366b367..0322f77a7450b 100644 --- a/src/freenas/debian/preinst +++ b/src/freenas/debian/preinst @@ -7,7 +7,8 @@ for file in \ /usr/lib/netdata/conf.d/charts.d.conf \ /lib/systemd/system/smartmontools.service \ /usr/share/spice-html5/spice_auto.html \ - /usr/share/spice-html5/spice.css + /usr/share/spice-html5/spice.css \ + /etc/logrotate.d/netdata do dpkg-divert --add --package truenas-files --rename --divert "/var/trash/$(echo "$file" | sed "s/\//_/g")" "$file" done