#!/bin/sh #Daily maintenance mode for Jamu DIRECTORY=$(grep ^mythtv /etc/passwd | awk -F : '{print $6}') if [ -f "$DIRECTORY/.mythtv/config.xml" ]; then su mythtv -c "/usr/bin/python /usr/share/mythtv/mythvideo/scripts/jamu.py -M >> '/var/log/mythtv/jamu.log'" fi