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
--
MythTV creates files in /home even if mount /home fails
https://bugs.launchpad.net/bugs/326702
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs