]> git.donarmstrong.com Git - roundcube.git/commitdiff
Execute cron job only if the directory to clean exists.
authorVincent Bernat <bernat@debian.org>
Sun, 14 Dec 2008 09:38:02 +0000 (09:38 +0000)
committerJérémy Bobbio <lunar@debian.org>
Sat, 18 Jun 2011 17:59:21 +0000 (19:59 +0200)
debian/changelog
debian/roundcube-core.cron.daily

index 3f55da6f248c7c6e6818f8ebc891709dbc588339..5a69d33c96de0c64f6aaf876aa8f6d365f7073af 100644 (file)
@@ -2,8 +2,9 @@ roundcube (0.2~alpha-4) UNRELEASED; urgency=low
 
   * Add missing ${misc:Depends} to make Lintian happy.
   * Add description to each patch.
+  * Execute cron job only if the directory to clean exists.
 
- -- Vincent Bernat <bernat@debian.org>  Sat, 13 Dec 2008 14:53:23 +0100
+ -- Vincent Bernat <bernat@debian.org>  Sun, 14 Dec 2008 10:37:47 +0100
 
 roundcube (0.2~alpha-3) experimental; urgency=high
 
index 0fe51fc1e21364cf1e11a3a1f446d6912985adf5..ec4bfd77236e3d55d9c5e48c8283bb7c97757e46 100644 (file)
@@ -6,4 +6,6 @@ if [ -r /etc/default/roundcube-core ]; then
        . /etc/default/roundcube-core
 fi
 
-find /var/lib/roundcube/temp -type f -mtime +$MAX_TMPFILE_LIFETIME -print0 | xargs -0 -r rm
+if [ -d /var/lib/roundcube/temp ]; then
+       find /var/lib/roundcube/temp -type f -mtime +$MAX_TMPFILE_LIFETIME -print0 | xargs -0 -r rm
+fi