示例#1
0
func shouldWarnJuju1x() bool {
	if _, err := execLookPath(juju1xCmdName); err != nil {
		return false
	}
	return osenv.Juju1xEnvConfigExists() &&
		!juju2xConfigDataExists()
}
示例#2
0
文件: main.go 项目: 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()
}