Skip to content

Commit

Permalink
Enable powertools and epel repos, and disable cpanel-plugins repo.
Browse files Browse the repository at this point in the history
Cases BC-6603 and BC-6604: Ensure that the powertools and epel repos are
enabled, and disable cpanel-plugins repo during upgrade.
  • Loading branch information
Stephen Bee committed Nov 29, 2023
1 parent 0abeaa3 commit a958d1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion elevate-cpanel
Original file line number Diff line number Diff line change
Expand Up @@ -5724,12 +5724,15 @@ sub run_stage_4 ($self) {
# no failures once already installed: no need to check for the epel-release version
$self->ssystem_and_die(qw{/usr/bin/dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm});

$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});
{
local $ENV{'CPANEL_BASE_INSTALL'} = 1; # Don't fix more than perl itself.
$self->ssystem(qw{/usr/local/cpanel/scripts/fix-cpanel-perl});
}
$self->ssystem(qw{/usr/bin/dnf -y --allowerasing update});
$self->ssystem(qw{/usr/bin/dnf -y --allowerasing --disablerepo cpanel-plugins update});
$self->ssystem_and_die(qw{/usr/local/cpanel/scripts/sysup});

return;
Expand Down
5 changes: 4 additions & 1 deletion script/elevate-cpanel.PL
Original file line number Diff line number Diff line change
Expand Up @@ -1082,12 +1082,15 @@ sub run_stage_4 ($self) {
# no failures once already installed: no need to check for the epel-release version
$self->ssystem_and_die(qw{/usr/bin/dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm});

$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});
{
local $ENV{'CPANEL_BASE_INSTALL'} = 1; # Don't fix more than perl itself.
$self->ssystem(qw{/usr/local/cpanel/scripts/fix-cpanel-perl});
}
$self->ssystem(qw{/usr/bin/dnf -y --allowerasing update});
$self->ssystem(qw{/usr/bin/dnf -y --allowerasing --disablerepo cpanel-plugins update});
$self->ssystem_and_die(qw{/usr/local/cpanel/scripts/sysup});

return;
Expand Down

0 comments on commit a958d1f

Please sign in to comment.