diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-03-16 01:00:17 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-03-16 01:00:17 +0200 |
commit | 49de152cf937b3809e7faf0e4d04a231a641d9fc (patch) | |
tree | 00d242407d5977e478671b3ea1b73c01c7bd5249 /lib/_ak_log | |
parent | cf5b4da7f4309650cdb6b7cd02fecc3a7b3dfc4b (diff) | |
download | arching-kaos-tools-49de152cf937b3809e7faf0e4d04a231a641d9fc.tar.gz arching-kaos-tools-49de152cf937b3809e7faf0e4d04a231a641d9fc.tar.bz2 arching-kaos-tools-49de152cf937b3809e7faf0e4d04a231a641d9fc.zip |
Logs updates
Diffstat (limited to 'lib/_ak_log')
-rwxr-xr-x | lib/_ak_log | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/_ak_log b/lib/_ak_log index 8a2d6d8..7097b97 100755 --- a/lib/_ak_log +++ b/lib/_ak_log @@ -82,15 +82,15 @@ function _ak_log_grep(){ } function _ak_log_rotate(){ - cd $AK_WORKDIR/$AK_LOGSDIR + cd $AK_LOGSDIR if [ -f $AK_LOGSFILE ] then - gzip -c logs > $(_ak_datetime_unix)_logs.gz - cat /dev/null > logs + gzip -c log > $(_ak_datetime_unix)_log.gz + cat /dev/null > log fi if [ -f $AK_LOGSDIR/akd.log ] then - gzip -c akd.log > $(_ak_datetime_unix)_akd-logs.gz + gzip -c akd.log > $(_ak_datetime_unix)_akd-log.gz cat /dev/null > akd.log fi } |