dceead3997
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
8 lines
231 B
Bash
8 lines
231 B
Bash
#!/bin/sh
|
|
|
|
# SOGOSPOOL must match the value of the configuration parameter SOGoMailSpoolPath
|
|
SOGOSPOOL=/var/spool/sogo
|
|
|
|
/usr/sbin/tmpwatch 24 "$SOGOSPOOL"
|
|
find "$SOGOSPOOL" -mindepth 1 -type d -user sogo -empty -delete > /dev/null
|