Created
March 14, 2015 20:56
-
-
Save subimage/74417df6e000a7e24024 to your computer and use it in GitHub Desktop.
Capistrano task to upgrade all servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :util do | |
desc "apt software update" | |
task :apt_upgrade do | |
run "#{sudo} apt-get update -q" | |
run %Q\#{sudo} sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade -q -y\ | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will update / upgrade your server packages. Answers "yes" to everything, except keeps old config files that new packages might want to overwrite.