Skip to content

Commit

Permalink
Fix to just check if plugin is there
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Mar 5, 2024
1 parent 9a2311e commit 16c5b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postinstall.pl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
sub module_install
{
# Enable virtualmin-htpasswd module once
if (&virtual_server::plugin_defined("virtualmin-nginx", "start_nginx")) {
if (&indexof('virtualmin-nginx', @virtual_server::plugins) >= 0) {
if ($virtual_server::config{'plugins'} !~ /$module_name/ &&
$virtual_server::config{'plugins_postinstall_enabled'} !~ /$module_name/) {
&virtual_server::lock_file($virtual_server::module_config_file);
Expand Down

0 comments on commit 16c5b02

Please sign in to comment.