- redirect error output of find to /dev/null (no error should be produced
if no user directories are found) git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@10 4ebea2bb-67d4-0310-8558-a5799e421b66
This commit is contained in:
parent
c27c7def8c
commit
b56c8447e5
|
@ -30,8 +30,8 @@ for i in @spooldir@/users/*/received @spooldir@/done @spooldir@/failed; do
|
|||
test -r $i/cronjob.conf && . $i/cronjob.conf
|
||||
|
||||
test "$MAX_DAYS" -gt 0 2> /dev/null || continue
|
||||
find $i/. -name "*fax-[0-9]*.*" ! -type d ! -type s -atime +$MAX_DAYS -exec rm {} \;
|
||||
find $i/. -name "*voice-[0-9]*.*" ! -type d ! -type s -atime +$MAX_DAYS -exec rm {} \;
|
||||
find $i/. -name "*fax-[0-9]*.*" ! -type d ! -type s -atime +$MAX_DAYS -exec rm {} \; 2>/dev/null
|
||||
find $i/. -name "*voice-[0-9]*.*" ! -type d ! -type s -atime +$MAX_DAYS -exec rm {} \; 2>/dev/null
|
||||
done;
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue