~ubuntu-branches/ubuntu/lucid/mythplugins/lucid

« back to all changes in this revision

Viewing changes to debian/mythvideo.cron.hourly

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Nicholas J Kreucher
  • Date: 2010-02-14 19:24:14 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20100214192414-h7t0blb0y32pep33
Tags: 0.22.0+fixes23527-0ubuntu1
* New snapshot (r23527)
* debian/control:
  - Recommends for python-imaging (LP: #500313)
* debian/mythweb.postinst:
  - Check that a 'default' site is available before attempting to
    make a new one. (LP: #462405)
  - Check that the new site to enable exists before enabling.
* debian/mythvideo.cron.*:
  - Redirect all output on stderr into the log file too (LP: #487880)
  - Check that a frontend is installed to determine if this job should
    be ran. (LP: #507436)
* debian/mythvideo.logrotate:
  - Supply a logrotate script for jamu.

[ Nicholas J Kreucher ]
* debian/mythvideo.cron.*:
  - Use getent instead of grep /etc/passwd (LP: #511858)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#Hourly massive update to ensure users see graphics coming in for upcoming recordings and current recordings
3
 
DIRECTORY=$(grep ^mythtv /etc/passwd | awk -F : '{print $6}')
4
 
if [ -f "$DIRECTORY/.mythtv/config.xml" ]; then
5
 
    su mythtv -c "/usr/bin/python /usr/share/mythtv/mythvideo/scripts/jamu.py -MW >> '/var/log/mythtv/jamu.log'"
 
3
DIRECTORY=$(getent passwd mythtv | cut -d':' -f6)
 
4
if [ -f "$DIRECTORY/.mythtv/config.xml" ] && [ -x /usr/bin/mythfrontend ]; then
 
5
    su mythtv -c "/usr/bin/python /usr/share/mythtv/mythvideo/scripts/jamu.py -MW >> '/var/log/mythtv/jamu.log' 2>&1"
6
6
fi
7
7