alpine: configure unattended upgrades
This commit is contained in:
parent
6a9a4142ce
commit
393614aa79
3 changed files with 24 additions and 0 deletions
8
roles/alpine/files/unattended-upgrade
Normal file
8
roles/alpine/files/unattended-upgrade
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
upgrade() {
|
||||
echo "Starting upgrade on $(date)"
|
||||
apk upgrade --update
|
||||
}
|
||||
|
||||
upgrade >> /var/log/unattended-upgrade.log
|
3
roles/alpine/files/unattended-upgrade.logrotate
Normal file
3
roles/alpine/files/unattended-upgrade.logrotate
Normal file
|
@ -0,0 +1,3 @@
|
|||
/var/log/unattended-upgrade.log {
|
||||
missingok
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue