debian/loolwsd.cron.d | 2 +- loolwsd.spec.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 57f3bae9d9cd8c462a12a424d2bd838ba0c4cece Author: Jan Holesovsky <ke...@collabora.com> Date: Wed May 30 20:03:21 2018 +0200 Cleanup all old files in the cache, not just png's. Change-Id: I61c7016d0e318742d733da72d97572215ba46a36 diff --git a/debian/loolwsd.cron.d b/debian/loolwsd.cron.d index 85a3afcae..761029b92 100644 --- a/debian/loolwsd.cron.d +++ b/debian/loolwsd.cron.d @@ -1 +1 @@ -0 0 */1 * * root find /var/cache/loolwsd -name "*.png" -a -atime +10 -exec rm {} \; +0 0 */1 * * root find /var/cache/loolwsd -type f -a -atime +10 -exec rm {} \; diff --git a/loolwsd.spec.in b/loolwsd.spec.in index 681ca8762..b1d2df5fb 100644 --- a/loolwsd.spec.in +++ b/loolwsd.spec.in @@ -88,7 +88,7 @@ install -D -m 644 sysconfig.loolwsd %{buildroot}/var/adm/fillup-templates %endif mkdir -p %{buildroot}/etc/cron.d echo "#Remove old tiles once every 10 days at midnight" > %{buildroot}/etc/cron.d/loolwsd.cron -echo "0 0 */1 * * root find /var/cache/loolwsd -name \"*.png\" -a -atime +10 -exec rm {} \;" >> %{buildroot}/etc/cron.d/loolwsd.cron +echo "0 0 */1 * * root find /var/cache/loolwsd -type f -a -atime +10 -exec rm {} \;" >> %{buildroot}/etc/cron.d/loolwsd.cron mkdir -p %{buildroot}/etc/pam.d echo "auth required pam_unix.so" > %{buildroot}/etc/pam.d/loolwsd echo "account required pam_unix.so" >> %{buildroot}/etc/pam.d/loolwsd _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits