diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-25 04:14:20 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-25 04:14:20 (GMT) |
commit | a2b8003706543f561ea00236ef1efd008372b87e (patch) | |
tree | 602ad9c9fc03a295c7caf46d96e704dfc23d058a /abs/core/LinHES-config/mv_common.py | |
parent | 153da1b95eae42d4af8596ddf614041700ecdafa (diff) | |
download | linhes_pkgbuild-a2b8003706543f561ea00236ef1efd008372b87e.zip linhes_pkgbuild-a2b8003706543f561ea00236ef1efd008372b87e.tar.gz linhes_pkgbuild-a2b8003706543f561ea00236ef1efd008372b87e.tar.bz2 |
LinHES-config: added mv_vnc.py
Diffstat (limited to 'abs/core/LinHES-config/mv_common.py')
-rwxr-xr-x | abs/core/LinHES-config/mv_common.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/abs/core/LinHES-config/mv_common.py b/abs/core/LinHES-config/mv_common.py index fa610b6..a1b3bef 100755 --- a/abs/core/LinHES-config/mv_common.py +++ b/abs/core/LinHES-config/mv_common.py @@ -108,22 +108,24 @@ def link_file(srcfile,link_name): return -def mkdir_mythhome(mythhome): +def mkdir_mythhome(mythhome,user,grp=1000): if not os.path.exists(mythhome+"/.mythtv"): logging.debug(" Creating %s/.mythtv",mythhome) try: os.mkdir(mythhome+"/.mythtv") except: logging.debug(" Couldn't create .mythtv ") - return + try: - os.chown(mythhome+"/.mythtv", mythuid, mythgid) - logging.debug("* Couldn't chown of %s", mythhome) - except: - cmd = ''' chown -R mythtv %s/.mythtv''' %mythhome + #os.chown(mythhome+"/.mythtv", int(user), int(grp)) + #logging.debug("* Couldn't chown of %s", mythhome) + + cmd = ''' chown -R %s %s/.mythtv''' %(user,mythhome) runcmd(cmd) - cmd = ''' chgrp -R mythtv %s/.mythtv''' %mythhome + cmd = ''' chgrp -R %s %s/.mythtv''' %(grp,mythhome) runcmd(cmd) + except: + logging.debug("* Couldn't chown of %s", mythhome) pass |