summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-04-13 18:57:46 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-04-13 18:57:46 +0200
commitf3e7a55083767090d45f5f57b34e0cd8aa7d5e94 (patch)
tree20f8ff60281d48e38877e07afcb6c9fcdabb666f /ch
parenta78dff2ee06eedc0af8283bc27a934e321a8ccc8 (diff)
downloadbin-f3e7a55083767090d45f5f57b34e0cd8aa7d5e94.tar.gz
bin-f3e7a55083767090d45f5f57b34e0cd8aa7d5e94.tar.xz
ch: gzip logs
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'ch')
-rwxr-xr-xch1
1 files changed, 1 insertions, 0 deletions
diff --git a/ch b/ch
index a2d20ad..9cbb137 100755
--- a/ch
+++ b/ch
@@ -96,6 +96,7 @@ __chrootalias() {
__cleanup_logs() {
mkdir -p "$1/logs"
mv "$1/"*.log "$1/"*.log.* "$1/logs/"
+ gzip -f "$1/logs/"*.log "$1/logs/"*.log.*
}
chkill() {