Update lastheard

This commit is contained in:
Waldek 2019-08-20 18:25:31 +02:00 committed by GitHub
parent a7aacf62f0
commit 89cb6234e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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