Submitted by RedKnot on Sat, 06/19/2010 - 14:06
Failed to get the version of logrotate with the command /usr/sbin/logrotate -v :
logrotate logrotate-3.7.1 - Copyright (C) 1995-2001 Red Hat, Inc. This may be freely redistributed under the terms of the GNU Public License
Usage: logrotate [-d|--debug] [-f|--force] [-m|--mail command] [-s|--state statefile] [-v|--verbose] [-?|--help] [--usage] [OPTION...]
I installed logrotate from http://pkg.opensolaris.org/dev/manifest/0/system%2Ffile%2Flogrotate%403....
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Sat, 06/19/2010 - 15:58 Comment #1
Looks like your logrotate command is outputting the version in an odd format..
The fix is to edit /opt/webmin/logrotate/logrotate-lib.pl and change like 177 from :
return $out =~ /logrotate\s+([0-9\.]+)\s/ ? $1 : undef;
to :
return $out =~ /logrotate\-([0-9\.]+)\s/ ? $1 : undef;
I will fix this properly in the next Webmin release (1.520).
Submitted by RedKnot on Sat, 06/19/2010 - 16:36 Comment #2
Thanks for the quick reply! That solved the problem!
Submitted by Issues on Sat, 07/03/2010 - 21:20 Comment #3
Automatically closed -- issue fixed for 2 weeks with no activity.