Esempio n. 1
0
func shouldWarnJuju1x() bool {
	if _, err := execLookPath(juju1xCmdName); err != nil {
		return false
	}
	return osenv.Juju1xEnvConfigExists() &&
		!juju2xConfigDataExists()
}
Esempio n. 2
0
File: main.go Progetto: bac/juju
func shouldWarnJuju1x() bool {
	// this code only applies to Ubuntu, where we renamed Juju 1.x to juju-1.
	ostype, err := series.GetOSFromSeries(series.HostSeries())
	if err != nil || ostype != utilsos.Ubuntu {
		return false
	}
	return osenv.Juju1xEnvConfigExists() && !juju2xConfigDataExists()
}