Skip to content

Commit

Permalink
Disable awstats and webalizer on minimal install
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Sep 16, 2017
1 parent cea06b2 commit 234257a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/Virtualmin/Config/Plugin/Virtualmin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ sub actions {
$vconfig{'spam'} = 0;
$vconfig{'virus'} = 0;
$vconfig{'postgresql'} = 0;
$vconfig{'webalizer'} = 0;

}
else {
$vconfig{'spam'} = 1;
Expand All @@ -67,8 +69,14 @@ sub actions {
$vconfig{'ssl'} = 2;
}
if (!defined($vconfig{'plugins'})) {
$vconfig{'plugins'}
= 'virtualmin-dav virtualmin-awstats virtualmin-mailman virtualmin-htpasswd';
if ($self->bundle() eq "MiniLEMP" || $self->bundle() eq "MiniLAMP") {
$vconfig{'plugins'}
= 'virtualmin-dav virtualmin-mailman virtualmin-htpasswd';
}
else {
$vconfig{'plugins'}
= 'virutalmin-awstats virtualmin-dav virtualmin-mailman virtualmin-htpasswd';
}
}
if (-e "/etc/debian_version" || -e "/etc/lsb-release") {
$vconfig{'proftpd_config'}
Expand Down

0 comments on commit 234257a

Please sign in to comment.