Skip to content

Commit

Permalink
First check-in of minimal plugin bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Aug 6, 2017
1 parent bb24319 commit 08d66a7
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
37 changes: 37 additions & 0 deletions lib/Virtualmin/Config/MiniLAMP.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package Virtualmin::Config::MiniLAMP;
use strict;
use warnings;
use 5.010_001;

# A list of plugins for configuring a LAMP stack

sub new {
my ($class, %args) = @_;
my $self = {};

return bless $self, $class;
}

sub plugins {

# Modern system with systemd?
if (-x "/usr/bin/systemctl" || -x "/bin/systemctl") {
return [
"Webmin", "Apache", "Bind", "Net",
"Postfix", "MySQL", "Firewalld", "Procmail",
"ProFTPd", "Quotas", "Shells", "Status",
"Upgrade", "Usermin", "Webalizer", "Virtualmin",
"NTP", "Fail2banFirewalld"
];
}
else {
return [
"Webmin", "Apache", "Bind", "Net", "Postfix",
"MySQL", "Firewall", "Procmail", "ProFTPd", "Quotas",
"Shells", "Status", "Upgrade", "Usermin", "Virtualmin",
"NTP", "Fail2ban"
];
}
}

1;
37 changes: 37 additions & 0 deletions lib/Virtualmin/Config/MiniLEMP.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package Virtualmin::Config::MiniLEMP;
use strict;
use warnings;
use 5.010_001;

# A list of plugins for configuring a LAMP stack

sub new {
my ($class, %args) = @_;
my $self = {};

return bless $self, $class;
}

sub plugins {

# Modern system with systemd?
if (-x "/usr/bin/systemctl" || -x "/bin/systemctl") {
return [
"Webmin", "Nginx", "Bind", "Net",
"Postfix", "MySQL", "Firewalld", "Procmail",
"ProFTPd", "Quotas", "Shells", "Status",
"Upgrade", "Usermin", "Webalizer", "Virtualmin",
"NTP", "Fail2banFirewalld"
];
}
else {
return [
"Webmin", "Nginx", "Bind", "Net", "Postfix",
"MySQL", "Firewall", "Procmail", "ProFTPd", "Quotas",
"Shells", "Status", "Upgrade", "Usermin", "Virtualmin",
"NTP", "Fail2ban"
];
}
}

1;

0 comments on commit 08d66a7

Please sign in to comment.