Skip to content

Commit

Permalink
Add blocker if cPanel is not running version 110
Browse files Browse the repository at this point in the history
This is the last version to support c7, so we want to fix this script to
only run on this version.  This will minimize testing and risk moving
forward.

Fixes #337
  • Loading branch information
cPholloway committed Jan 10, 2024
1 parent d6ccefc commit 8a05b45
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2024-01-10 - version 20
- #337 - Add blocker if cPanel is not running version 110

2024-01-10 - version 19
- Use canonical_dump() when building JSON for repo blocker reports

2024-01-09 - version 18
- #332 - Suppress additional checks when run with --check --no-leapp

Expand Down
4 changes: 2 additions & 2 deletions elevate-cpanel
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ BEGIN { # Suppress load of all of these at earliest point.

package Elevate::Constants;

use constant MINIMUM_LTS_SUPPORTED => 102;
use constant MINIMUM_LTS_SUPPORTED => 110;
use constant MAXIMUM_LTS_SUPPORTED => 110;

use constant SERVICE_DIR => '/etc/systemd/system/';
Expand Down Expand Up @@ -4856,7 +4856,7 @@ BEGIN {
$Cpanel::Version::Tiny::major_version >= Elevate::Constants::MINIMUM_LTS_SUPPORTED
or do {
warn qq[You need to upgrade your cPanel server to version ] . Elevate::Constants::MINIMUM_LTS_SUPPORTED #
. qq[or later before running this script.\n];
. qq[ or later before running this script.\n];
exit 1;
};
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Elevate/Constants.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if their usage is self contained.
=cut

use constant MINIMUM_LTS_SUPPORTED => 102;
use constant MINIMUM_LTS_SUPPORTED => 110;
use constant MAXIMUM_LTS_SUPPORTED => 110;

use constant SERVICE_DIR => '/etc/systemd/system/';
Expand Down
2 changes: 1 addition & 1 deletion script/elevate-cpanel.PL
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ BEGIN {
$Cpanel::Version::Tiny::major_version >= Elevate::Constants::MINIMUM_LTS_SUPPORTED
or do {
warn qq[You need to upgrade your cPanel server to version ] . Elevate::Constants::MINIMUM_LTS_SUPPORTED #
. qq[or later before running this script.\n];
. qq[ or later before running this script.\n];
exit 1;
};
}
Expand Down
2 changes: 1 addition & 1 deletion t/cpanel-setup
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

ULC=/usr/local/cpanel
VERSION=11.102.0.1
VERSION=11.110.0.17
REPO=$(pwd)

yum clean all
Expand Down

0 comments on commit 8a05b45

Please sign in to comment.