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 3389bb2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion elevate-cpanel
Original file line number Diff line number Diff line change
Expand Up @@ -2936,6 +2936,8 @@ EOS

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

$self->ssystem(qw{/usr/bin/rpm -e --nodeps jetphp81-zip});

return;
}

Expand All @@ -2948,7 +2950,9 @@ EOS

my $tier = $data->{tier};
my @packages = $data->{packages}->@*;
$self->ssystem( qw{/usr/bin/yum -y update --enablerepo=jetapps}, "--enablerepo=$tier", @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
7 changes: 6 additions & 1 deletion 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,7 +58,9 @@ sub post_leapp ($self) {

my $tier = $data->{tier};
my @packages = $data->{packages}->@*;
$self->ssystem( qw{/usr/bin/yum -y update --enablerepo=jetapps}, "--enablerepo=$tier", @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 3389bb2

Please sign in to comment.