Update lastheard

This commit is contained in:
Waldek 2021-05-18 17:12:40 +02:00 committed by GitHub
parent c6bd37bbf1
commit 8054d98161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,7 @@
#!/bin/bash
#
# copy this file to /etc/cron.daily/
mv /opt/HBMonv2/log/lastheard.log /opt/HBMonv2/log/lastheard.log.save
/usr/bin/tail -250 /opt/HBMonv2/log/lastheard.log.save > /opt/HBMonv2/log/lastheard.log
mv /opt/HBMonv2/log/lastheard.log /opt/HBMonv2/log/lastheard.log.save