[Logcheck-commits] CVS logcheck/debian
CVS User eevans-guest
logcheck-devel@lists.alioth.debian.org
Wed, 19 May 2004 09:06:56 -0600
Update of /cvsroot/logcheck/logcheck/debian
In directory haydn:/tmp/cvs-serv4037
Modified Files:
logcheck.postinst logcheck.templates
Log Message:
- Fixed chown vs. chmod typo in postinst
- Adjusted wording of logcheck/cron description in templates
-- Eric Evans
--- /cvsroot/logcheck/logcheck/debian/logcheck.postinst 2004/05/18 19:52:39 1.12
+++ /cvsroot/logcheck/logcheck/debian/logcheck.postinst 2004/05/19 15:06:55 1.13
@@ -1,6 +1,6 @@
#!/bin/sh
-# $Id: logcheck.postinst,v 1.12 2004/05/18 19:52:39 eevans-guest Exp $
+# $Id: logcheck.postinst,v 1.13 2004/05/19 15:06:55 eevans-guest Exp $
set -e
@@ -34,13 +34,13 @@
if [ -f $CRONTAB ] && [ "$1" == "daily" ] ; then
sed -e "s/^[[:digit:]*,-/]\+[[:space:]]\+[[:digit:]*,-/]\+[[:space:]]\+[[:digit:]*,-/]\+[[:space:]]\+[[:alnum:]*,-/]\+[[:space:]]\+[[:alnum:]*,-/]\+\([[:space:]]\+.\+ \/usr\/sbin\/logcheck .\+$\)/2 0 * * *\1/g" $CRONTAB > $TMPCRON
cp $TMPCRON $CRONTAB
- chown 644 $CRONTAB
+ chmod 644 $CRONTAB
fi
if [ -f $CRONTAB ] && [ "$1" == "weekly" ] ; then
sed -e "s/^[[:digit:]*,-/]\+[[:space:]]\+[[:digit:]*,-/]\+[[:space:]]\+[[:digit:]*,-/]\+[[:space:]]\+[[:alnum:]*,-/]\+[[:space:]]\+[[:alnum:]*,-/]\+\([[:space:]]\+.\+ \/usr\/sbin\/logcheck .\+$\)/2 0 1 * *\1/g" $CRONTAB > $TMPCRON
cp $TMPCRON $CRONTAB
- chown 644 $CRONTAB
+ chmod 644 $CRONTAB
fi
rm -f $TMPCRON
}
--- /cvsroot/logcheck/logcheck/debian/logcheck.templates 2004/05/18 19:52:39 1.7
+++ /cvsroot/logcheck/logcheck/debian/logcheck.templates 2004/05/19 15:06:56 1.8
@@ -28,5 +28,4 @@
_Description: How often should logcheck run to generate reports?
Logcheck is invoked by cron to periodically parse your log files and
generate an email report. Hourly is the default and recommended
- interval for this, but you may also select from one of weekly or daily
- as well.
+ interval for, but you may also select from one of weekly or daily.