diff options
author | James Meyer <james.meyer@operamail.com> | 2010-03-21 04:12:49 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-03-21 04:12:49 (GMT) |
commit | 12066094126b4b8d07e6c0df3dab6323d5d71571 (patch) | |
tree | b151e4fcc0aa79a02762e742cfac96f9548b12bc /abs/core-testing/LinHES-system/smolt.cron | |
parent | 8fe536ba935dd38e6a1ccfd1066fc9e4d09f1dd3 (diff) | |
download | linhes_pkgbuild-12066094126b4b8d07e6c0df3dab6323d5d71571.zip linhes_pkgbuild-12066094126b4b8d07e6c0df3dab6323d5d71571.tar.gz linhes_pkgbuild-12066094126b4b8d07e6c0df3dab6323d5d71571.tar.bz2 |
linhes-system: create cronjob for mythsmolt to checkin once a week with profile updates
Also fixed myth_mtc.sh from being symlinked if it was already present on install/upgrade
closes 656
Diffstat (limited to 'abs/core-testing/LinHES-system/smolt.cron')
-rw-r--r-- | abs/core-testing/LinHES-system/smolt.cron | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/abs/core-testing/LinHES-system/smolt.cron b/abs/core-testing/LinHES-system/smolt.cron new file mode 100644 index 0000000..f418df1 --- /dev/null +++ b/abs/core-testing/LinHES-system/smolt.cron @@ -0,0 +1,11 @@ +#!/bin/bash +. /etc/profile +if [ -f /home/mythtv/.mythtv/MythSmolt/hw-uuid ] +then + cd /usr/share/mythtv/mythsmolt/scripts + touch /var/log/smolt.update + chown mythtv /var/log/smolt.update + random=$((RANDOM%2000)) + sleep $random + su mythtv -c "./sendProfile.py -a" > /var/log/smolt.update +fi |