summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-system/smolt.cron
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-03-21 04:12:49 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-03-21 04:12:49 (GMT)
commit12066094126b4b8d07e6c0df3dab6323d5d71571 (patch)
treeb151e4fcc0aa79a02762e742cfac96f9548b12bc /abs/core-testing/LinHES-system/smolt.cron
parent8fe536ba935dd38e6a1ccfd1066fc9e4d09f1dd3 (diff)
downloadlinhes_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.cron11
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