-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First check-in of minimal plugin bundles
- Loading branch information
Showing
2 changed files
with
74 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
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; |
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,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; |