mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +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();
|
&clean_environment();
|
||||||
$out = &backquote_logged("$config{'logrotate'} -f $config{'logrotate_conf'} 2>&1");
|
$out = &backquote_logged("$config{'logrotate'} -f $config{'logrotate_conf'} 2>&1");
|
||||||
&reset_environment();
|
&reset_environment();
|
||||||
print "<pre>$out</pre>";
|
if ($out) {
|
||||||
if ($?) {
|
print "<pre>$out</pre>";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
print "<br>";
|
||||||
|
}
|
||||||
|
if ($? && $out) {
|
||||||
print $text{'force_failed'},"<br>\n";
|
print $text{'force_failed'},"<br>\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user