[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [webstats/master] Clean up after ourselves
commit 8d44ab0e0c47705eaaa3aab1c16d2bd1ec3f99b0
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date: Wed Nov 18 17:21:56 2015 +0100
Clean up after ourselves
---
src/treat_new_logs.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/treat_new_logs.sh b/src/treat_new_logs.sh
index 144eec3..d4d529f 100755
--- a/src/treat_new_logs.sh
+++ b/src/treat_new_logs.sh
@@ -37,9 +37,10 @@ for host in *; do
COMPLETED_BASE=${COMPLETED_BASE%_sanitized}
sort "${COMPLETED}" > "${COMPLETED}_sorted"
xz -ck9e "${COMPLETED}_sorted" > "${OUTDIR}/${COMPLETED_BASE}.xz"
- mv "${OUTDIR}/${COMPLETED_BASE}.xz" "${WORKDIR_AWSTATS}"
+ cp "${OUTDIR}/${COMPLETED_BASE}.xz" "${WORKDIR_AWSTATS}"
rm "${WORKDIR}/${basefile}"
+ rm "${COMPLETED}_sorted"
rm "${WORKDIR}/${COMPLETED_BASE}_sanitized"
touch "${STAMPDIR}/${file}_treated"
done
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits