]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix: hydractl: upgrade: apply any pending dpkg configurations
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 27 Jul 2021 23:38:13 +0000 (20:38 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 27 Jul 2021 23:38:13 +0000 (20:38 -0300)
share/hydractl/upgrade

index 4ee31a1ca49dbaa0ca2a18b3917fe140950418b6..0001a987a25d36fa07d589df1b66654c4a0a10e5 100755 (executable)
@@ -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