autodist/etc/cron.daily/40-openmamba-autodist-cleanold

8 lines
451 B
Plaintext
Raw Normal View History

2011-05-04 02:31:45 +02:00
#!/bin/bash
find /var/autodist/RPM/RPMS/i586/ -maxdepth 1 -ctime +25 -exec rm -rf {} \;
find /var/autodist/RPM/RPMS/noarch/ -maxdepth 1 -ctime +25 -exec rm -rf {} \;
find /var/autodist/RPM/BUILD/ -maxdepth 1 -ctime +25 -exec rm -rf {} \;
find /var/autodist/RPM/SOURCES/ -maxdepth 1 -ctime +120 -exec rm -rf {} \;
find /var/autodist/RPM/SRPMS/ -maxdepth 1 -ctime +90 -exec rm -rf {} \;
find /var/tmp/autodist/ -maxdepth 1 -ctime +25 -exec rm -rf {} \;