From e28be8415fe6015d55e7e71dd903db07123254a5 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Tue, 21 Nov 2023 14:16:46 +0100 Subject: [PATCH] Update postinstall virtio-win-updater: add logrotation --- postinstall | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/postinstall b/postinstall index fc7c37a..8812999 100755 --- a/postinstall +++ b/postinstall @@ -620,6 +620,17 @@ EOF cat << EOF > /etc/cron.daily/virtio-win-updater #!/bin/bash /usr/local/bin/virtio-win-updater >> /var/log/virtio-win-updater.log 2>&1 +EOF + cat << EOF > /etc/logrotate.d/virtio-win-updater +/var/log/virtio-win-updater.log { + weekly + rotate 12 + compress + delaycompress + missingok + notifempty + create 644 root root +} EOF log "Running virtio-win-updater" virtio-win-updater