Commit 2bba642f authored by mh's avatar mh
Browse files

another dir where tmp data might get stored

parent fb46d10d
......@@ -3,7 +3,7 @@
# clean up mod_security log directories that are within
# a certain age
[ -z $1 ] && echo "USAGE: $0 days_to_keep" && exit 1
for vhost in /var/www/vhosts/*/logs; do
for vhost in /var/www/vhosts/*/logs /var/lib/mod_security; do
if ls $vhost/20* 1> /dev/null 2>&1; then
tmpwatch -q ${1}d $vhost/20*
find $vhost/20* -ignore_readdir_race -maxdepth 1 -mindepth 1 -type d -empty -delete
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment