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