aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-log-rotate
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-log-rotate')
-rwxr-xr-xbin/ak-log-rotate7
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/ak-log-rotate b/bin/ak-log-rotate
index ddf8f84..bac076c 100755
--- a/bin/ak-log-rotate
+++ b/bin/ak-log-rotate
@@ -1,7 +1,4 @@
#!/bin/bash
+source $AK_LIBDIR/_ak_log
-tar cvfz $AK_ARCHIVESDIR/logs_$(date -u +%s).tar.gz $AK_WORKDIR/logs
-
-cat /dev/null > $AK_WORKDIR/akd.log
-cat /dev/null > $AK_WORKDIR/akd.err
-cat /dev/null > $AK_WORKDIR/logs
+_ak_log_rotate