X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Froundcube-core.cron.daily;h=ec4bfd77236e3d55d9c5e48c8283bb7c97757e46;hb=d832c6b37ce0cba5a2bc015b1c806ba6990c4253;hp=4b071ca2684f1c23463c4d7c7da7c6e80f73a496;hpb=58041fc77c3079bfab9002c5f59cd72cb584baed;p=roundcube.git diff --git a/debian/roundcube-core.cron.daily b/debian/roundcube-core.cron.daily index 4b071ca..ec4bfd7 100644 --- a/debian/roundcube-core.cron.daily +++ b/debian/roundcube-core.cron.daily @@ -2,8 +2,10 @@ MAX_TMPFILE_LIFETIME=5 # MAX_TMPFILE_LIFETIME can be overridden in this file -if [ -r /etc/default/roundcube ]; then - . /etc/default/roundcube +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