mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
Fix false positive error outputs
https://forum.virtualmin.com/t/force-logrotate-fails/107301
This commit is contained in:
@ -12,8 +12,13 @@ print $text{'force_doing'},"\n";
|
||||
&clean_environment();
|
||||
$out = &backquote_logged("$config{'logrotate'} -f $config{'logrotate_conf'} 2>&1");
|
||||
&reset_environment();
|
||||
print "<pre>$out</pre>";
|
||||
if ($?) {
|
||||
if ($out) {
|
||||
print "<pre>$out</pre>";
|
||||
}
|
||||
else {
|
||||
print "<br>";
|
||||
}
|
||||
if ($? && $out) {
|
||||
print $text{'force_failed'},"<br>\n";
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user