Update postinstall

virtio-win-updater: add logrotation
This commit is contained in:
Thorsten Spille 2023-11-21 14:16:46 +01:00 committed by GitHub
parent 8cd25f9342
commit e28be8415f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -620,6 +620,17 @@ EOF
cat << EOF > /etc/cron.daily/virtio-win-updater cat << EOF > /etc/cron.daily/virtio-win-updater
#!/bin/bash #!/bin/bash
/usr/local/bin/virtio-win-updater >> /var/log/virtio-win-updater.log 2>&1 /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 EOF
log "Running virtio-win-updater" log "Running virtio-win-updater"
virtio-win-updater virtio-win-updater