summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/mv_vnc.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-config/mv_vnc.py')
-rwxr-xr-xabs/core/LinHES-config/mv_vnc.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/abs/core/LinHES-config/mv_vnc.py b/abs/core/LinHES-config/mv_vnc.py
index 7dbc986..bc7a201 100755
--- a/abs/core/LinHES-config/mv_vnc.py
+++ b/abs/core/LinHES-config/mv_vnc.py
@@ -48,12 +48,22 @@ exec wmaker
logging.critical("* vncsvc not found")
vncuid = '78'
vncgid = '78'
- mv_common.mkdir_mythhome(data_config.VNCHOME,vncuid,vncgid)
- home_xml_file=data_config.VNCHOME + "/.mythtv/config.xml"
- configxml_file="/usr/share/mythtv/config.xml"
- mv_common.link_file(configxml_file,home_xml_file)
+ cmd="setfacl -m u:vncsvc:x %s" %data_config.MYTHHOME
+ mv_common.runcmd(cmd)
+
+ srcmyth="%s/.mythtv" %data_config.MYTHHOME
+ destmyth="%s/.mythtv" %data_config.VNCHOME
+
+ mv_common.link_file(srcmyth,destmyth)
+
+
+
+ #mv_common.mkdir_mythhome(data_config.VNCHOME,vncuid,vncgid)
+ #home_xml_file=data_config.VNCHOME + "/.mythtv/config.xml"
+ #configxml_file="/usr/share/mythtv/config.xml"
+ #mv_common.link_file(configxml_file,home_xml_file)
logging.info(" Writing out password")
vncpassfile="%s/passwd" %vncdir