summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/mv_vnc.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-11-03 20:57:06 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-11-03 20:57:06 (GMT)
commitf5b2e9b0a4d64593c831e9efbf1d26c0ca1958e3 (patch)
tree8264de679d3dd511994431afe90f53f85529d7e3 /abs/core/LinHES-config/mv_vnc.py
parent5eafff133bbbeee71bbf83c195e70a698c562230 (diff)
downloadlinhes_pkgbuild-f5b2e9b0a4d64593c831e9efbf1d26c0ca1958e3.zip
linhes_pkgbuild-f5b2e9b0a4d64593c831e9efbf1d26c0ca1958e3.tar.gz
linhes_pkgbuild-f5b2e9b0a4d64593c831e9efbf1d26c0ca1958e3.tar.bz2
LinHES-config: mv_vnc.py vncsvc/.mythtv is now a symlink to mythtv/.vncsvc
refs #860 closes #860
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