web_logs: Compress parsed logs
This commit is contained in:
parent
17c2b560cc
commit
39ac3ddb26
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ get_vhosts | while read -r vhost ; do
|
|||
/srv/weblog/*/"${vhost}".access.log* > "${outfile}.tmp"
|
||||
if [ -s "${outfile}.tmp" ]; then
|
||||
mv "${outfile}.tmp" "$outfile"
|
||||
xz -6 "$outfile"
|
||||
else
|
||||
rm -f "${outfile}.tmp"
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue