HBmonitor/utils/lastheard
Waldek 61e188b050
Update lastheard
fix directory for lastheard.log
2019-09-14 21:13:22 +02:00

6 lines
344 B
Bash

#!/bin/bash
mv /opt/HBmonitor/log/lastheard.log /opt/HBmonitor/log/lastheard.log.save
/usr/bin/tail -150 /opt/HBmonitor/log/lastheard.log.save > /opt/HBmonitor/log/lastheard.log
mv /opt/HBmonitor/log/lastheard.log /opt/HBmonitor/log/lastheard.log.save
/usr/bin/tail -150 /opt/HBmonitor/log/lastheard.log.save > /opt/HBmonitor/log/lastheard.log