mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-03 16:52:31 +01:00
deb-update.bash: run apt-get autoremove also before apt-get upgrade (kernel space issues?)
This commit is contained in:
parent
acfddc6a62
commit
61e218a15b
@ -19,10 +19,13 @@ if hash apt-get 2>/dev/null; then
|
||||
# Checking for updates or new packages.
|
||||
apt-get -y update
|
||||
|
||||
# potentially unsafe first time, so there hopefully is space for new kernels
|
||||
apt-get "$@" autoremove
|
||||
|
||||
# If arguments like -y are passed to the script, they become "$@"
|
||||
apt-get "$@" upgrade --with-new-pkgs
|
||||
|
||||
# potentially unsafe
|
||||
# potentially unsafe, second time after new kernel is installed
|
||||
apt-get "$@" autoremove
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user