-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #498 from timmullin/RE-43
Do not block on Panopta or FortiMonitor
- Loading branch information
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package Elevate::Components::Panopta; | ||
|
||
=encoding utf-8 | ||
=head1 NAME | ||
Elevate::Components::Panopta | ||
Handle situation where the Panopta agent is installed | ||
Before leapp: | ||
Uninstall the Panopta agent since it is deprecated and | ||
not compatible with Elevate | ||
=cut | ||
|
||
use cPstrict; | ||
|
||
use Cpanel::Pkgr (); | ||
|
||
use parent qw{Elevate::Components::Base}; | ||
|
||
sub pre_leapp ($self) { | ||
|
||
if ( Cpanel::Pkgr::is_installed('panopta-agent') ) { | ||
|
||
$self->yum->remove('panopta-agent'); | ||
} | ||
|
||
return; | ||
} | ||
|
||
sub post_leapp ($self) { | ||
|
||
return; | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters