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
7 lines
150 B
Bash
7 lines
150 B
Bash
#!/bin/sh
|
|
|
|
SOGOSPOOL=/var/spool/sogo
|
|
|
|
/usr/sbin/tmpreaper 24 "$SOGOSPOOL"
|
|
find "$SOGOSPOOL" -mindepth 1 -type d -user sogo -empty -delete > /dev/null
|