[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - debian/loolwsd.cron.d loolwsd.spec.in

Jan Holesovsky kendy at collabora.com
Wed May 30 18:29:30 UTC 2018


 debian/loolwsd.cron.d |    2 +-
 loolwsd.spec.in       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 53596f4dbe8e6abd8bcb6976676a0b3897d3ccef
Author: Jan Holesovsky <kendy at 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
    Reviewed-on: https://gerrit.libreoffice.org/55095
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

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 7056b8737..ae5749713 100644
--- a/loolwsd.spec.in
+++ b/loolwsd.spec.in
@@ -128,7 +128,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


More information about the Libreoffice-commits mailing list