[packman] [PM] mythtv 0.20.2 (openSUSE 10.3/x86_64)

Wade Berrier wberrier at gmail.com
Thu Oct 11 01:35:51 CEST 2007


Hi Herbert,

How about adding this simple script to the mythtv-backend post_install?

It will change the ownership on /var/lib/mythtv if the backend has
been configured in /etc/sysconfig/mythbackend to run as a non-root
user.

Let me know, and thanks for updating these packages,

Wade

-----------------------------------------

# Change ownership of /var/lib/mythtv to match what the backend is running as

. /etc/sysconfig/mythbackend

MYTH_DIR="/var/lib/mythtv"

if test x$MYTHBACKEND_USERID != x ; then
        chown $MYTHBACKEND_USERID $MYTH_DIR
fi

if test x$MYTHBACKEND_GROUPID != x ; then
        chgrp $MYTHBACKEND_GROUPID $MYTH_DIR
fi




More information about the Packman mailing list