add --force-confnew to pick automatically new config when updating packages for debians, this avoid interactive prompt issues

Fixes #5559
This commit is contained in:
Pere Urbon-Bayes 2016-06-28 16:01:45 +02:00
parent a0db616fca
commit 1fa83b99dd

View file

@ -23,7 +23,7 @@ module ServiceTester
def install(package, host=nil)
hosts = (host.nil? ? servers : Array(host))
at(hosts, {in: :serial}) do |_|
cmd = sudo_exec!("dpkg -i #{package}")
sudo_exec!("dpkg -i --force-confnew #{package}")
end
end