Changed mythtv backend to run as user mythtv.
This commit is contained in:
parent
2bfbe82367
commit
7aa19f89a9
2 changed files with 20 additions and 0 deletions
10
mythtv/files/mythbackend
Normal file
10
mythtv/files/mythbackend
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#MYTHTV_HOME=/etc/mythtv
|
||||||
|
# mythbackend runs as root by default, but support for running as a non-root
|
||||||
|
# user should be functional. However, switching to a non-root user on an
|
||||||
|
# existing setup will require fixing up permissions on files mythbackend
|
||||||
|
# needs access to -- particularly, your recordings, which are owned by the
|
||||||
|
# user mythbackend runs as. If you switch from running as root to running as
|
||||||
|
# user mythtv, deleting existing recordings won't work until their file
|
||||||
|
# ownership has been changed from root to mythtv as well.
|
||||||
|
MYTHBACKEND_USER=mythtv
|
||||||
|
#OPTIONS=
|
|
@ -61,6 +61,16 @@ class mythtv::backend {
|
||||||
require => Package["mythtv-backend"],
|
require => Package["mythtv-backend"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { "/etc/sysconfig/mythbackend":
|
||||||
|
ensure => present,
|
||||||
|
source => "puppet:///mythtv/mythbackend",
|
||||||
|
mode => 0644,
|
||||||
|
owner => root,
|
||||||
|
group => root,
|
||||||
|
notify => Service["mythbackend"],
|
||||||
|
require => Package["mythtv-backend"],
|
||||||
|
}
|
||||||
|
|
||||||
file { "/root/.mythtv":
|
file { "/root/.mythtv":
|
||||||
ensure => "/etc/mythtv",
|
ensure => "/etc/mythtv",
|
||||||
force => true,
|
force => true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue