Merge pull request #253 from Code0x58/patch-1

Fix non-interactive `apt-get install` #251
This commit is contained in:
Kota Kanbe
2016-11-14 04:49:12 +09:00
committed by GitHub

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)