aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-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