fix apt-get error on conf file conflict

Signed-off-by: Jean-Charles Sisk <jasisk@gmail.com>
This commit is contained in:
Jean-Charles Sisk 2015-07-20 14:22:22 -04:00
parent 0acadcb35f
commit b1999a7820
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func (provisioner *UbuntuProvisioner) Package(name string, action pkgaction.Pack
}
}
command := fmt.Sprintf("DEBIAN_FRONTEND=noninteractive sudo -E apt-get %s -y %s", packageAction, name)
command := fmt.Sprintf("DEBIAN_FRONTEND=noninteractive sudo -E apt-get %s -y -o Dpkg::Options::=\"--force-confnew\" %s", packageAction, name)
log.Debugf("package: action=%s name=%s", action.String(), name)