mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-04 04:48:52 +00:00
Fixup sogo spool cleanup cronjob
Add -user sogo to be on the safe side. Change call to /bin/rmdir by -delete to avoid error messages. Find would call rmdir and then do an openat() on the deleted directory, which would obviously fail. Fixes #2372
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
SOGOSPOOL=/var/spool/sogo
|
||||
|
||||
/usr/sbin/tmpwatch 24 "$SOGOSPOOL"
|
||||
find "$SOGOSPOOL" -depth -mindepth 1 -type d -empty -exec /bin/rmdir {} \; 2> /dev/null
|
||||
find "$SOGOSPOOL" -mindepth 1 -type d -user sogo -empty -delete > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user