diff --git a/logrotate/force.cgi b/logrotate/force.cgi index 261603344..1717ab8f8 100755 --- a/logrotate/force.cgi +++ b/logrotate/force.cgi @@ -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 "
$out
"; -if ($?) { +if ($out) { + print "
$out
"; + } +else { + print "
"; + } +if ($? && $out) { print $text{'force_failed'},"
\n"; } else {