mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-11-07 18:31:58 +01:00
Update postinstall
virtio-win-updater: add logrotation
This commit is contained in:
parent
8cd25f9342
commit
e28be8415f
11
postinstall
11
postinstall
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user