Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
enh: handle rhel os for audit and plugins install (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
garnier-quentin committed May 20, 2022
1 parent 3a7cbd1 commit 5c30c6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sub metrics {

if ($options{os} =~ /Debian|Ubuntu/i) {
dpkg_list(metrics => $metrics);
} elsif ($options{os} =~ /CentOS|Redhat|almalinux/i) {
} elsif ($options{os} =~ /CentOS|Redhat|rhel|almalinux/i) {
rpm_list(metrics => $metrics);
} elsif ($options{os} eq 'ol' || $options{os} =~ /Oracle Linux/i) {
rpm_list(metrics => $metrics);
Expand Down
2 changes: 1 addition & 1 deletion gorgone/modules/core/action/class.pm
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ sub get_package_manager {
$self->{package_manager} = 'unknown';
if ($os =~ /Debian|Ubuntu/i) {
$self->{package_manager} = 'deb';
} elsif ($os =~ /CentOS|Redhat|almalinux/i) {
} elsif ($os =~ /CentOS|Redhat|rhel|almalinux/i) {
$self->{package_manager} = 'rpm';
} elsif ($os eq 'ol' || $os =~ /Oracle Linux/i) {
$self->{package_manager} = 'rpm';
Expand Down

0 comments on commit 5c30c6c

Please sign in to comment.