initial commit of bin scripts into git

This commit is contained in:
2023-11-08 13:38:19 +11:00
commit 3735eea3c6
113 changed files with 11631 additions and 0 deletions

12
fix-myth-db Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/bash
tail -n100 /var/log/mythtv/mythbackend.log | grep -q 'E Scheduler mythdbcon'
db_good=$?
if [ $db_good == 0 ]; then
echo "restarting myth as I can DB errors" >> $LOG
# echo "update settings set data='1370' where value='DBSchemaVer';" | mysql --user=mythtv --password=mythtv mythconverg
sudo systemctl restart mythtv-backend
# echo "update settings set data='1369' where value='DBSchemaVer';" | mysql --user=mythtv --password=mythtv mythconverg
echo "restart completed" >> $LOG
fi