feat: disable swap for alpine
This commit is contained in:
parent
3f2be9a110
commit
bebcea4ae8
1 changed files with 3 additions and 0 deletions
|
|
@ -6,5 +6,8 @@
|
||||||
0 3 * * 6 run-parts /etc/periodic/weekly
|
0 3 * * 6 run-parts /etc/periodic/weekly
|
||||||
0 5 1 * * run-parts /etc/periodic/monthly
|
0 5 1 * * run-parts /etc/periodic/monthly
|
||||||
|
|
||||||
|
# disable swap
|
||||||
|
@reboot swapoff -a
|
||||||
|
|
||||||
# update packages between 3:15-3:30 am
|
# update packages between 3:15-3:30 am
|
||||||
15 3 * * * sleep $(($RANDOM % 900)) && apk -U upgrade >/dev/null 2>&1 && apk clean cache && reboot -d 60
|
15 3 * * * sleep $(($RANDOM % 900)) && apk -U upgrade >/dev/null 2>&1 && apk clean cache && reboot -d 60
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue