Comment 2 for bug 326702

Will Uther (willu-mailinglists) wrote :

That sounds reasonable.

Something like this:

if [ ! -d $USER_HOME ]; then
 log_failure_msg "MythTV home directory, $USER_HOME, does not exist!"
 exit 1
fi

#create a symbolic link for mysql.txt so it can't be overwritten
if [ ! -e $USER_HOME/.mythtv/mysql.txt ]; then
    mkdir -p $USER_HOME/.mythtv
    chown -R $USER $USER_HOME/.mythtv
    ln -s /etc/mythtv/mysql.txt $USER_HOME/.mythtv/mysql.txt
fi