mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Reset Virtualmin links if logging enabled/disabled
This commit is contained in:
@@ -8,6 +8,7 @@ require './webmin-lib.pl';
|
||||
|
||||
&lock_file($ENV{'MINISERV_CONFIG'});
|
||||
&get_miniserv_config(\%miniserv);
|
||||
my ($miniserv_log, $in_log) = ($miniserv{'log'}, $in{'log'});
|
||||
$miniserv{'log'} = $in{'log'};
|
||||
$miniserv{'loghost'} = $in{'loghost'};
|
||||
$miniserv{'logclf'} = $in{'logclf'};
|
||||
@@ -61,6 +62,14 @@ $gconfig{'logsyslog'} = $in{'logsyslog'} if (defined($in{'logsyslog'}));
|
||||
&write_file("$config_directory/config", \%gconfig);
|
||||
&unlock_file("$config_directory/config");
|
||||
|
||||
# Clear links in Virtualmin module if installed
|
||||
if ($miniserv_log != $in_log) {
|
||||
if (&foreign_available('virtual-server')) {
|
||||
&foreign_require("virtual-server");
|
||||
&virtual_server::clear_links_cache();
|
||||
}
|
||||
}
|
||||
|
||||
&show_restart_page();
|
||||
&webmin_log("log", undef, undef, \%in);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user