[Libreoffice-commits] online.git: debian/loolwsd.cron.d

Sven Strickroth (via logerrit) logerrit at kemper.freedesktop.org
Sat Aug 10 21:29:14 UTC 2019


 debian/loolwsd.cron.d |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit eaa310aa29684f3ea34d448a32d6878eefa05497
Author:     Sven Strickroth <email at cs-ware.de>
AuthorDate: Tue Jul 2 21:45:56 2019 +0200
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Sat Aug 10 23:28:56 2019 +0200

    Use -delete command of find instead of -exec rm
    
    The -delete parameter allows to delete several files at once without
    the need to spawn a rm processes for every found file.
    
    Note, the -delete parameter is NOT POSIX compliant, however,
    it should be available on all relevant systems.
    
    Change-Id: Icc840aecc906700cae0665a592b7e0e7e377bdcb
    Signed-off-by: Sven Strickroth <email at cs-ware.de>
    Reviewed-on: https://gerrit.libreoffice.org/77084
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/debian/loolwsd.cron.d b/debian/loolwsd.cron.d
index 761029b92..d32374141 100644
--- a/debian/loolwsd.cron.d
+++ b/debian/loolwsd.cron.d
@@ -1 +1 @@
-0 0 */1 * * root find /var/cache/loolwsd -type f -a -atime +10 -exec rm {} \;
+0 0 */1 * * root find /var/cache/loolwsd -type f -a -atime +10 -delete


More information about the Libreoffice-commits mailing list