From 65513f81d103e341e80f061d69e2a072bb94efd3 Mon Sep 17 00:00:00 2001 From: "M. Rehan" Date: Wed, 3 Jul 2024 02:00:13 +0500 Subject: [PATCH] Fix logrotate to work properly --- 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