On Mon, Apr 04, 2005 at 07:17:22PM -0400, Justin Pryzby wrote:
> Note that there was a relevant thread on -devel around about last
> October. Someone complained that their thesis was in /var/log/apache/
Stupidity like that must not go unpunished. It's worse than leaving your
pr0n in /tmp and then wondering why it goes bye-bye on the next reboot --
leaving something in /var/log means you have to become *root* to store it
there...
> and was deleted when they purged the package. As such, you might
> consider something like rm -f /var/log/apache/{access,error}.log*;
> rmdir /var/log/apache/ instead of rm -fr /var/log/apache/.
rmdir --ignore-fail-on-non-empty /var/log/apache/
otherwise your maintainer scripts will go blergh every time someone has
decided to leave their thesis in your log directory.
But yes, it's not a bad idea to clean up just those files your package is
likely to have created during it's existence.
- Matt
Attachment:
signature.asc
Description: Digital signature