mythbuntu-bugs team mailing list archive
-
mythbuntu-bugs team
-
Mailing list archive
-
Message #00126
[Bug 511858] Re: mythvideo assumes passwd db is local
Thank you for helping to improve Mythbuntu by opening this ticket. I
am marking this ticket as confirmed because it appears to have enough
information to help the developers understand the problem. It is
possible I am wrong and another more experienced triager or developer
may adjust the status of the ticket to "incomplete" and request
additional information.
** Changed in: mythbuntu
Importance: Undecided => Low
** Changed in: mythbuntu
Status: New => Confirmed
--
mythvideo assumes passwd db is local
https://bugs.launchpad.net/bugs/511858
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.
Status in Mythbuntu, Ubuntu derivative focused upon MythTV: Confirmed
Bug description:
The /etc/cron.hourly/mythvideo jamu script assumes the mythtv user is stored in /etc/passwd. An easy change will support any configured passwd backend (ldap, nis etc):
# diff -u /etc/cron.hourly/mythvideo.orig /etc/cron.hourly/mythvideo
--- /etc/cron.hourly/mythvideo.orig 2010-01-24 02:27:13.866426860 -0800
+++ /etc/cron.hourly/mythvideo 2010-01-24 02:29:23.486429345 -0800
@@ -1,7 +1,8 @@
#!/bin/sh
#Hourly massive update to ensure users see graphics coming in for upcoming recordings and current recordings
-DIRECTORY=$(grep ^mythtv /etc/passwd | awk -F : '{print $6}')
+DIRECTORY=$(getent passwd mythtv | cut -d':' -f6)
if [ -f "$DIRECTORY/.mythtv/config.xml" ]; then
su mythtv -c "/usr/bin/python /usr/share/mythtv/mythvideo/scripts/jamu.py -MW >> '/var/log/mythtv/jamu.log'"
fi
Mythbuntu 9.10 / 0.22.0+fixes22594-0ubuntu1
References