mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Fix to enable log clearing similar to packaged version
This commit is contained in:
4
setup.pl
4
setup.pl
@ -406,6 +406,7 @@ else {
|
||||
'errorlog' => "$var_dir/miniserv.error",
|
||||
'pidfile' => "$var_dir/miniserv.pid",
|
||||
'logtime' => 168,
|
||||
'logclear' => 1,
|
||||
'ppath' => $ppath,
|
||||
'ssl' => $ssl,
|
||||
'no_ssl2' => 1,
|
||||
@ -778,12 +779,13 @@ else {
|
||||
}
|
||||
system("$perl "."e_path("$wadir/copyconfig.pl")." "."e_path("$os_type/$real_os_type")." "."e_path("$os_version/$real_os_version")." "."e_path($wadir)." ".$config_directory." \"\" ".$allmods . " >/dev/null 2>&1");
|
||||
if (!$upgrading) {
|
||||
# Store the OS and version
|
||||
# Store the OS and version, and enable log and log clearing
|
||||
&read_file("$config_directory/config", \%gconfig);
|
||||
$gconfig{'os_type'} = $os_type;
|
||||
$gconfig{'os_version'} = $os_version;
|
||||
$gconfig{'real_os_type'} = $real_os_type;
|
||||
$gconfig{'real_os_version'} = $real_os_version;
|
||||
$gconfig{'logclear'} = 1;
|
||||
$gconfig{'log'} = 1;
|
||||
&write_file("$config_directory/config", \%gconfig);
|
||||
}
|
||||
|
Reference in New Issue
Block a user