Fix non-interactive apt-get install #251

This commit is contained in:
Oliver Bristow
2016-11-11 19:13:51 +00:00
committed by GitHub
parent e40ef656d6
commit 2310522806

View File

@@ -159,7 +159,7 @@ func (o *debian) install() error {
}
for _, name := range o.lackDependencies {
cmd = util.PrependProxyEnv("apt-get install " + name)
cmd = util.PrependProxyEnv("apt-get install -y " + name)
if r := o.ssh(cmd, sudo); !r.isSuccess() {
msg := fmt.Sprintf("Failed to SSH: %s", r)
o.log.Errorf(msg)