#!/bin/sh

# Log directories to clean.
# Note that Apache logs are handled by newsyslog.
dirs="/usr/local/tomcat/logs /usr/local/cams/logs /usr/local/shibboleth-idp/logs /usr/local/shibboleth-sp/var/log"

# Files older than this number of days will be purged.
days=90

for d in $dirs ; do
  find $d -type f -mtime +$days -exec rm -f {} \;
done

exit 0
