aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_log
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-07 03:00:11 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-07 03:00:11 +0300
commit4701665aa82de2e9f96a8f983ce6b90bdf668da1 (patch)
treec0f9fa1f4d5ff87eb878f61d42bffcdb018b7a7d /lib/_ak_log
parentda69da62543cad0ab4120f7a28bb85f4dc849c0b (diff)
downloadarching-kaos-tools-4701665aa82de2e9f96a8f983ce6b90bdf668da1.tar.gz
arching-kaos-tools-4701665aa82de2e9f96a8f983ce6b90bdf668da1.tar.bz2
arching-kaos-tools-4701665aa82de2e9f96a8f983ce6b90bdf668da1.zip
Refactoring
Diffstat (limited to 'lib/_ak_log')
-rwxr-xr-xlib/_ak_log4
1 files changed, 2 insertions, 2 deletions
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
}