Update lastheard

fix directory for lastheard.log
This commit is contained in:
Waldek 2019-09-14 21:13:22 +02:00 committed by GitHub
parent 8d2b00b452
commit 61e188b050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
mv /opt/HBmonitor/lastheard.log /opt/HBmonitor/lastheard.log.save mv /opt/HBmonitor/log/lastheard.log /opt/HBmonitor/log/lastheard.log.save
/usr/bin/tail -150 /opt/HBmonitor/lastheard.log.save > /opt/HBmonitor/lastheard.log /usr/bin/tail -150 /opt/HBmonitor/log/lastheard.log.save > /opt/HBmonitor/log/lastheard.log
mv /opt/HBmonitor/lastheard.log /opt/HBmonitor/lastheard.log.save mv /opt/HBmonitor/log/lastheard.log /opt/HBmonitor/log/lastheard.log.save
/usr/bin/tail -150 /opt/HBmonitor/lastheard.log.save > /opt/HBmonitor/lastheard.log /usr/bin/tail -150 /opt/HBmonitor/log/lastheard.log.save > /opt/HBmonitor/log/lastheard.log