1. pi-setup_mythtv_31.sh
2. pi-mythbackend-helper.sh
I was completing the setup by adding a cronjob to run the contributor script 'optimize_mythdb.pl'. I've used this script on my Ubuntu based backend without issue. It seems that the standard Ubuntu install for mythtv includes a link in /root/.mythtv/ for config.xml to the main file in /etc/mythtv/config.xml.
The pi-mythbackend-helper.sh doesn't include this link and my first run of the optimize_mythdb failed with this error:
Code: Select all
/etc/cron.daily/optimize_mythdb:
No backends found. Please copy config.xml from a working MythTV installation to /root/.mythtv.
Compilation failed in require at /usr/share/doc/mythtv-backend/contrib/maintenance/optimize_mythdb.pl line 15.
BEGIN failed--compilation aborted at /usr/share/doc/mythtv-backend/contrib/maintenance/optimize_mythdb.pl line 15.
Code: Select all
sudo ln -s /etc/mythtv/config.xml /root/.mythtv/config.xml
I know I always have both the daily database backup and optimize jobs included in any backend I run.