From 4701665aa82de2e9f96a8f983ce6b90bdf668da1 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 7 Jun 2024 03:00:11 +0300 Subject: Refactoring --- lib/_ak_log | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/_ak_log') diff --git a/lib/_ak_log b/lib/_ak_log index d2760e6..09eb1dc 100755 --- a/lib/_ak_log +++ b/lib/_ak_log @@ -36,10 +36,10 @@ _ak_log_grep(){ } _ak_log_rotate(){ - tar cvfz $AK_ARCHIVESDIR/logs_$(date -u +%s).tar.gz $AK_WORKDIR/akd.log $AK_WORKDIR/akd.err $AK_WORKDIR/logs + tar cvfz $AK_ARCHIVESDIR/logs_$(date -u +%s).tar.gz $AK_WORKDIR/logs + tar cvfz $AK_ARCHIVESDIR/akd-logs_$(date -u +%s).tar.gz $AK_WORKDIR/akd.log cat /dev/null > $AK_WORKDIR/akd.log - cat /dev/null > $AK_WORKDIR/akd.err cat /dev/null > $AK_WORKDIR/logs } -- cgit v1.2.3