]> git.donarmstrong.com Git - bin.git/commitdiff
invoke sudo for bts mail; fix logs path
authorDon Armstrong <don@donarmstrong.com>
Tue, 6 Mar 2018 19:21:44 +0000 (11:21 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 6 Mar 2018 19:21:44 +0000 (11:21 -0800)
find_bts_mail [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index a4cb1a5..e1d4802
@@ -4,8 +4,8 @@ DAYS="${2:-4}"
 
 ## this script searches a bunch of paths to find logfiles, and then
 ## greps through the logfiles for matches
 
 ## this script searches a bunch of paths to find logfiles, and then
 ## greps through the logfiles for matches
-(find /srv/bugs.debian.org/mail/ -iname '.logfile*' -ctime -$DAYS -print0;
+(sudo -u debbugs find /srv/bugs.debian.org/mail/ -iname '.logfile*' -ctime -$DAYS -print0;
  find /var/log/exim4/ -iname 'mainlog*' -ctime -$DAYS -print0;
  find /var/log/exim4/ -iname 'mainlog*' -ctime -$DAYS -print0;
find /srv/bugs.debian.org/logs -iname 'spamscan*' -ctime -$DAYS -print0;
find /srv/bugs.debian.org/logs -iname 'process*' -ctime -$DAYS -print0;
sudo -u debbugs find /srv/bugs.debian.org/log -iname 'spamscan*' -ctime -$DAYS -print0;
sudo -u debbugs find /srv/bugs.debian.org/log -iname 'process*' -ctime -$DAYS -print0;
  )|xargs -0 grep -C 5 "$1"
  )|xargs -0 grep -C 5 "$1"