Re: mythtv v34 installation if user 'mythtv' is already crea…

Top Page

Reply to this message
Author: Christian Marillat
Date:  
To: dmo-discussion
Subject: Re: mythtv v34 installation if user 'mythtv' is already created?
On 01 mars 2024 09:03, James Abernathy <jfabernathy@???> wrote:


[...]

> This seems to be caused by the fact that the installation added a line
> in the mythtv-backend.service within systemd that reads:
>
> Environment=HOME=/var/lib/mythtv
>
> I can fix my problem by changing that to:
>
> Environment=HOME=/home/mythtv
>
> IMHO, the installation should check for the existence of the user
> 'mythtv' and use its $HOME as the right value to put in the systemd
> service file.


We already check HOME in mythtv-backend.postinst and
mythtv-common.postinst with this command:

getent passwd mythtv | awk -F: '{ print $6}'

But I don't know how to do that in the service file.

Any ideas ?

Christian