libreoffice-online/debian/loolwsd.cron.d
Sven Strickroth eaa310aa29 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@cs-ware.de>
Reviewed-on: https://gerrit.libreoffice.org/77084
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2019-08-10 23:28:56 +02:00

1 line
71 B
D

0 0 */1 * * root find /var/cache/loolwsd -type f -a -atime +10 -delete