1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

run apt-get autoremove after updating system packages

Old kernels can build up and some packages may not be needed anymore.

See https://discourse.mailinabox.email/t/storage-space-decreasing/2525/5.
This commit is contained in:
Joshua Tauberer
2017-10-07 10:11:45 -04:00
parent 7bf377eed1
commit f080eabb3a
2 changed files with 10 additions and 0 deletions

View File

@@ -96,6 +96,12 @@ echo Updating system packages...
hide_output apt-get update
apt_get_quiet upgrade
# Old kernels pile up over time and take up a lot of disk space, and because of Mail-in-a-Box
# changes there may be other packages that are no longer needed. Clear out anything apt knows
# is safe to delete.
apt_get_quiet autoremove
# ### Install System Packages
# Install basic utilities.