Index: trunk/debs/wikimedia-task-appserver/debian/mw-cleanup-tmp |
— | — | @@ -0,0 +1,8 @@ |
| 2 | +#!/bin/bash |
| 3 | + |
| 4 | +/usr/bin/find /tmp -mmin +60 -a \( \ |
| 5 | + -name EasyTimeline.txt.\* -o \ |
| 6 | + -name \*.png -o \ |
| 7 | + -name php\* \) \ |
| 8 | + -delete |
| 9 | + |
Property changes on: trunk/debs/wikimedia-task-appserver/debian/mw-cleanup-tmp |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 10 | + native |
Index: trunk/debs/wikimedia-task-appserver/debian/changelog |
— | — | @@ -1,3 +1,9 @@ |
| 2 | +wikimedia-task-appserver (1.41) hardy; urgency=low |
| 3 | + |
| 4 | + * Add cron job for cleaning up /tmp |
| 5 | + |
| 6 | + -- Tim Starling <tstarling@wikimedia.org> Mon, 08 Feb 2010 11:09:14 +1100 |
| 7 | + |
2 | 8 | wikimedia-task-appserver (1.40) hardy; urgency=low |
3 | 9 | |
4 | 10 | * Add dependency on the newly backported package php5-geoip |
Index: trunk/debs/wikimedia-task-appserver/debian/conffiles |
— | — | @@ -2,3 +2,4 @@ |
3 | 3 | /etc/php5/apache2/php.ini |
4 | 4 | /etc/sudoers |
5 | 5 | /etc/apache2/envvars |
| 6 | +/etc/cron.hourly/mw-cleanup-tmp |
Index: trunk/debs/wikimedia-task-appserver/debian/rules |
— | — | @@ -53,6 +53,7 @@ |
54 | 54 | install -m 0644 php.ini $(DESTDIR)/etc/php5/apache2 |
55 | 55 | install -m 0644 php.ini $(DESTDIR)/usr/share/php5/php.ini-dist |
56 | 56 | install -m 0400 sudoers $(DESTDIR)/etc/ |
| 57 | + install -m 0755 mw-cleanup-tmp $(DESTDIR)/etc/cron.hourly/ |
57 | 58 | |
58 | 59 | # Install sync/check scripts |
59 | 60 | install -d -m 0755 $(DESTDIR)/usr/bin |
Index: trunk/debs/wikimedia-task-appserver/envvars |
— | — | @@ -11,3 +11,6 @@ |
12 | 12 | |
13 | 13 | # For Ubuntu 8.04+ |
14 | 14 | APACHE_HTTPD="$HTTPD" |
| 15 | + |
| 16 | +# Don't crash when NFS goes down |
| 17 | +cd / |