summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/myth_mtc.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-10-13 15:53:38 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-10-13 15:53:38 (GMT)
commit6b03cf6ea01426682a0d85f94012957aefc50da9 (patch)
treee0bb3baa80b6c51e9a87a8d23e977f2bc4177d43 /abs/core/LinHES-system/myth_mtc.sh
parente1bc87901b78eac47748de1a19e8c3ff9f9793c7 (diff)
downloadlinhes_pkgbuild-6b03cf6ea01426682a0d85f94012957aefc50da9.zip
linhes_pkgbuild-6b03cf6ea01426682a0d85f94012957aefc50da9.tar.gz
linhes_pkgbuild-6b03cf6ea01426682a0d85f94012957aefc50da9.tar.bz2
LinHES-system: write mtc log file into /var/log/$DATE
Diffstat (limited to 'abs/core/LinHES-system/myth_mtc.sh')
-rwxr-xr-xabs/core/LinHES-system/myth_mtc.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/abs/core/LinHES-system/myth_mtc.sh b/abs/core/LinHES-system/myth_mtc.sh
index d995122..7899daa 100755
--- a/abs/core/LinHES-system/myth_mtc.sh
+++ b/abs/core/LinHES-system/myth_mtc.sh
@@ -1,8 +1,9 @@
#!/bin/bash
MYTH_RUN_STATUS=1
. /etc/profile
-logFile='/var/log/mythtv/myth_mtc.log'
+
date=`date +%Y-%m-%d`
+logFile="/var/log/$date/myth_mtc.log"
MYTHCONFDIR=/usr/share/mythtv myth_mtc.py > $logFile 2>&1
if [ $? = 0 ]