]> git.pld-linux.org Git - packages/logcheck.git/blob - logcheck-command_correct.patch
-remove path to tail (mv to patch2)
[packages/logcheck.git] / logcheck-command_correct.patch
1 --- logcheck-1.2.47.orig/src/logcheck   2006-07-06 10:16:42.000000000 +0000
2 +++ logcheck-1.2.47/src/logcheck        2006-10-08 22:30:26.000000000 +0000
3 @@ -73,7 +73,7 @@
4  STATEDIR="/var/lib/logcheck"
5  LOGFILES_LIST="/etc/logcheck/logcheck.logfiles"
6  LOGFILE_FALLBACK="/var/log/syslog"
7 -LOGTAIL="/usr/sbin/logtail"
8 +LOGTAIL="/usr/bin/logtail"
9  CAT="/bin/cat"
10  SYSLOG_SUMMARY="/usr/bin/syslog-summary"
11  
12 @@ -205,10 +205,10 @@
13  
14      if [ -d $dir ]; then 
15          if [ ! -d $cleaned ]; then
16 -           mkdir $cleaned \
17 +           install -d $cleaned \
18                 || error "Could not make dir $cleaned for cleaned rulefiles."
19         fi
20 -       for rulefile in $(run-parts --list $dir); do
21 +       for rulefile in $(run-parts -u $dir); do
22             rulefile=$(basename $rulefile)
23             if [ -f ${dir}/${rulefile} ]; then
24                 debug "cleanrules: ${dir}/${rulefile}"
25 @@ -623,7 +623,7 @@
26  
27  debug "Trying to get lockfile: $LOCKFILE.lock"
28  if [ ! -d $LOCKDIR ]; then 
29 -       mkdir -m 0755 $LOCKDIR
30 +       install -d -m 0755 $LOCKDIR
31  fi
32  lockfile-create --retry 1 $LOCKFILE > /dev/null 2>&1
33  
34 @@ -661,7 +661,7 @@
35  
36  # Get the list of log files from config file
37  # Handle log rotation correctly, idea taken from Wiktor Niesiobedzki.
38 -mkdir $TMPDIR/logoutput \
39 +install -d $TMPDIR/logoutput \
40      || error "Could not mkdir for log files"
41  if [ ! $LOGFILE ] && [ -r $LOGFILES_LIST ]; then
42      for file in $(egrep --text -v "(^#|^[[:space:]]*$)" $LOGFILES_LIST); do
This page took 0.036169 seconds and 3 git commands to generate.