Skip to content

Commit

Permalink
Fix leapp upgrade process to not remove jetbackup5-cpanel
Browse files Browse the repository at this point in the history
Was dependant on libzip.so.2 which isn't available in 8.
  • Loading branch information
toddr committed Jan 24, 2024
1 parent b5f59e6 commit 9e37e1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Elevate/Components/JetBackup.pm
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ sub pre_leapp ($self) {

cpev::update_stage_file( { 'reinstall' => { 'jetbackup' => $data } } );

# Remove this package because leapp will remove it as it depends on libzip.so.2 which isn't available in 8.
$self->ssystem( qw{/usr/bin/rpm -e --nodeps jetphp81-zip} );

return;
}

Expand All @@ -55,6 +58,8 @@ sub post_leapp ($self) {

my $tier = $data->{tier};
my @packages = $data->{packages}->@*;

$self->ssystem( qw{/usr/bin/yum -y install --enablerepo=jetapps}, "--enablerepo=$tier", 'jetphp81-zip' );
$self->ssystem( qw{/usr/bin/yum -y update --enablerepo=jetapps}, "--enablerepo=$tier", @packages );

return;
Expand Down

0 comments on commit 9e37e1c

Please sign in to comment.