aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-07-27 20:38:13 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-07-27 20:38:13 -0300
commiteb5b3086367fc05028cb1e91a4533da566fd16dd (patch)
treef91b57b144eb6c25b0442a9e449d47cb82813ae3
parente4d4160f0fdae532d0e2bf8a43426e6840300f3c (diff)
downloadhydra-eb5b3086367fc05028cb1e91a4533da566fd16dd.tar.gz
hydra-eb5b3086367fc05028cb1e91a4533da566fd16dd.tar.bz2
Fix: hydractl: upgrade: apply any pending dpkg configurations
-rwxr-xr-xshare/hydractl/upgrade4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/hydractl/upgrade b/share/hydractl/upgrade
index 4ee31a1..0001a98 100755
--- a/share/hydractl/upgrade
+++ b/share/hydractl/upgrade
@@ -26,6 +26,10 @@ fi
# Issue upgrade
if ! $sudo lsof /var/lib/dpkg/lock &> /dev/null; then
+ # Fix any pending upgrades
+ $sudo dpkg --configure -a
+
+ # Proceed to the actual upgrade
$sudo apt-get update
$sudo apt-get dist-upgrade -y
$sudo apt-get autoremove -y