Merge pull request #378 from future-architect/obsolete-centos5
Obsolete CentOS5 support
This commit is contained in:
@@ -397,7 +397,7 @@ web/app server in the same configuration under the load balancer
|
||||
| Ubuntu | 12, 14, 16|
|
||||
| Debian | 7, 8|
|
||||
| RHEL | 5, 6, 7|
|
||||
| CentOS | 5, 6, 7|
|
||||
| CentOS | 6, 7|
|
||||
| Amazon Linux| All|
|
||||
| FreeBSD | 10, 11|
|
||||
| Raspbian | Wheezy, Jessie |
|
||||
|
||||
@@ -398,7 +398,7 @@ If there is a staging environment with the same configuration as the production
|
||||
| Ubuntu | 12, 14, 16|
|
||||
| Debian | 7, 8|
|
||||
| RHEL | 5, 6, 7|
|
||||
| CentOS | 5, 6, 7|
|
||||
| CentOS | 6, 7|
|
||||
| Amazon Linux| All|
|
||||
| FreeBSD | 10, 11|
|
||||
| Raspbian | Wheezy, Jessie |
|
||||
|
||||
@@ -151,7 +151,6 @@ func (o *redhat) checkIfSudoNoPasswd() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// CentOS 5 ... yum-changelog
|
||||
// CentOS 6, 7 ... yum-plugin-changelog
|
||||
// RHEL 5 ... yum-security
|
||||
// RHEL 6, 7 ... -
|
||||
@@ -169,12 +168,25 @@ func (o *redhat) checkDependencies() error {
|
||||
return fmt.Errorf(msg)
|
||||
}
|
||||
|
||||
if o.Distro.Family == "centos" {
|
||||
if majorVersion < 6 {
|
||||
msg := fmt.Sprintf("CentOS %s is not supported", o.Distro.Release)
|
||||
o.log.Errorf(msg)
|
||||
return fmt.Errorf(msg)
|
||||
}
|
||||
|
||||
// --assumeno option of yum is needed.
|
||||
cmd := "yum -h | grep assumeno"
|
||||
if r := o.exec(cmd, noSudo); !r.isSuccess() {
|
||||
msg := fmt.Sprintf("Installed yum is old. Please update yum and then retry")
|
||||
o.log.Errorf(msg)
|
||||
return fmt.Errorf(msg)
|
||||
}
|
||||
}
|
||||
|
||||
switch o.Distro.Family {
|
||||
case "centos":
|
||||
packName = "yum-plugin-changelog"
|
||||
if majorVersion < 6 {
|
||||
packName = "yum-changelog"
|
||||
}
|
||||
case "rhel":
|
||||
if majorVersion < 6 {
|
||||
packName = "yum-security"
|
||||
|
||||
Reference in New Issue
Block a user