From 0247fe09adbc25c7e20ca8c6f2b3f9abd5f9f653 Mon Sep 17 00:00:00 2001 From: Tim Mullin Date: Mon, 29 Jan 2024 18:21:22 +0000 Subject: [PATCH] Remove cPanel version check in the BEGIN block Case RE-56: Fixes #347. Invoking the script with --check (or --start) will run a more thorough and informative version check as well as checking for any other issues of concern. Changelog: Removed the simple version check from the BEGIN block of the script since this happens during the check operation. --- elevate-cpanel | 7 ------- script/elevate-cpanel.PL | 7 ------- 2 files changed, 14 deletions(-) diff --git a/elevate-cpanel b/elevate-cpanel index ba4cb787..a717bfa1 100755 --- a/elevate-cpanel +++ b/elevate-cpanel @@ -4936,13 +4936,6 @@ BEGIN { warn(qq[This script is designed to only run on cPanel servers.\n]); exit 1; }; - - $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]; - exit 1; - }; } use Log::Log4perl qw(:easy); diff --git a/script/elevate-cpanel.PL b/script/elevate-cpanel.PL index 56b74dc2..4a3ab6b6 100755 --- a/script/elevate-cpanel.PL +++ b/script/elevate-cpanel.PL @@ -200,13 +200,6 @@ BEGIN { warn(qq[This script is designed to only run on cPanel servers.\n]); exit 1; }; - - $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]; - exit 1; - }; } use Log::Log4perl qw(:easy);