]> gitweb.fluxo.info Git - hydra.git/commitdiff
Autoremove and -y for downloading
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Feb 2013 19:23:44 +0000 (17:23 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Feb 2013 19:23:44 +0000 (17:23 -0200)
share/hydractl/system-upgrade

index 1ffdf34402640f35eea35e4cba40351635028326..b5f374c6739891e038d4a54e9aa548897f8a439c 100755 (executable)
@@ -50,12 +50,13 @@ echo "Updating package listing..."
 apt-get update
 echo ""
 echo "Downloading packages..."
-apt-get dist-upgrade -d
+apt-get dist-upgrade -d -y
 
 # Upgrade the system
 echo ""
 echo "Upgrading the system..."
 apt-get dist-upgrade
+apt-get autoremove
 
 # Enable puppet again
 echo ""