Skip to content

Commit

Permalink
Merge pull request #358 from cpanel/re94
Browse files Browse the repository at this point in the history
Break X::Tiny not perl to force fix-cpanel-perl to run
  • Loading branch information
toddr authored Jan 23, 2024
2 parents 658a3c9 + ea925a8 commit f20c08b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion elevate-cpanel
Original file line number Diff line number Diff line change
Expand Up @@ -5853,7 +5853,8 @@ sub run_stage_4 ($self) {
$self->ssystem(qw{/usr/bin/dnf config-manager --enable powertools});
$self->ssystem(qw{/usr/bin/dnf config-manager --enable epel});

$self->ssystem(qw{/usr/bin/rm -f /usr/local/cpanel/3rdparty/bin/perl});
# Break cpanel-perl (NOTE: This only works on perl 5.36)
$self->ssystem(qw{/usr/bin/rm -f /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/X/Tiny.pm});
{
local $ENV{'CPANEL_BASE_INSTALL'} = 1; # Don't fix more than perl itself.
$self->ssystem(qw{/usr/local/cpanel/scripts/fix-cpanel-perl});
Expand Down
3 changes: 2 additions & 1 deletion script/elevate-cpanel.PL
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,8 @@ sub run_stage_4 ($self) {
$self->ssystem(qw{/usr/bin/dnf config-manager --enable powertools});
$self->ssystem(qw{/usr/bin/dnf config-manager --enable epel});

$self->ssystem(qw{/usr/bin/rm -f /usr/local/cpanel/3rdparty/bin/perl});
# Break cpanel-perl (NOTE: This only works on perl 5.36)
$self->ssystem(qw{/usr/bin/rm -f /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/X/Tiny.pm});
{
local $ENV{'CPANEL_BASE_INSTALL'} = 1; # Don't fix more than perl itself.
$self->ssystem(qw{/usr/local/cpanel/scripts/fix-cpanel-perl});
Expand Down

0 comments on commit f20c08b

Please sign in to comment.