Re: install_logwatch.sh problem

Mike Tremaine <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Markus Lude wrote:
> Hello,
> if one changes the config dir when running install_logwatch.sh, the path
> in logwatch.pl isn't changed.
> 
> from install_logwatch.sh:
> 
> if [ $munge_conf ]; then
>    perl -pi -e "s%/etc/logwatch/conf%$CONFIGDIR/conf%" $BASEDIR/scripts/logwatch.pl
> fi
> 
> But the setting of ConfigDir in logwatch.pl doesn't contain the "conf"
> part:
> 
> $ grep etc/logwatch logwatch-7.3.6/scripts/logwatch.pl 
> my $ConfigDir = "/etc/logwatch";
> 
> The part in the install script should better be something like:
> 
> if [ $munge_conf ]; then
>    perl -pi -e "s%/etc/logwatch%$CONFIGDIR%" $BASEDIR/scripts/logwatch.pl
> fi
> 
>


This one is correct in CVS [ it was patched on version 1.14 11/28/2007] 
so look for it to do the right thing next release or grab the CVS version.

-Mike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.