diff --git a/src/compress_logs.sh b/src/compress_logs.sh index e96226e1..487d54b5 100644 --- a/src/compress_logs.sh +++ b/src/compress_logs.sh @@ -18,5 +18,5 @@ done ALTERNC_LOGS="$ALTERNC_LOC/logs" #Compress logs older than XX days -nice -n 10 find "$ALTERNC_LOGS" -not -name '*.gz' -mtime +$DAYS -exec gzip '{}' \; +nice -n 10 find "$ALTERNC_LOGS" -type f -name '*.log' -mtime +$DAYS -exec gzip '{}' \;