mirror of
https://github.com/ShaYmez/hblink3-docker-install.git
synced 2025-12-22 21:49:50 +13:00
Update hblink3-docker-install.sh
Create cron for trimming LH
This commit is contained in:
parent
a8fe1f68a1
commit
9c721670a0
@ -183,6 +183,17 @@ then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|
||||||
|
echo "Install crontab..."
|
||||||
|
cat << EOF > /etc/cron.daily/lastheard
|
||||||
|
#!/bin/bash
|
||||||
|
mv /opt/HBMonv2/log/lastheard.log /opt/HBMonv2/log/lastheard.log.save
|
||||||
|
/usr/bin/tail -150 /opt/HBMonv2/log/lastheard.log.save > /opt/HBMonv2/log/lastheard.log
|
||||||
|
mv /opt/HBMonv2/log/lastheard.log /opt/HBMonv2/log/lastheard.log.save
|
||||||
|
/usr/bin/tail -150 /opt/HBMonv2/log/lastheard.log.save > /opt/HBMonv2/log/lastheard.log
|
||||||
|
EOF
|
||||||
|
chmod 755 /etc/cron.daily/lastheard
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
echo "------------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------------"
|
||||||
echo "Installing HBlink3 configuration dirs....."
|
echo "Installing HBlink3 configuration dirs....."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user