summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/lh_mtc.cron
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/linhes-system/lh_mtc.cron')
-rw-r--r--linhes/linhes-system/lh_mtc.cron2
1 files changed, 1 insertions, 1 deletions
diff --git a/linhes/linhes-system/lh_mtc.cron b/linhes/linhes-system/lh_mtc.cron
index 4ab62eb..b556d60 100644
--- a/linhes/linhes-system/lh_mtc.cron
+++ b/linhes/linhes-system/lh_mtc.cron
@@ -50,7 +50,7 @@ then
if ! grep -q "Finished Backup" $logFile && grep -q "Finished Optimize" $logFile
then
- MYTHCONFDIR=/usr/share/mythtv unbuffer lh_mtc.py --backup | $log
+ sudo -u mythtv bash -c "MYTHCONFDIR=/usr/share/mythtv unbuffer lh_mtc.py --backup | $log"
if [ $? = 0 ]
then
echo "" | $log