summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config-22/mv_webuser.py
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2010-01-23 09:52:38 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2010-01-23 09:52:38 (GMT)
commit332702fe9eaf2db10c7bc2fdf840460e9c119623 (patch)
treecdb7e4f3c0f61f7c2d1b278abb47ca952703e2cf /abs/core-testing/LinHES-config-22/mv_webuser.py
parent2cb896aaa2e7143dacb9fcee9952fc572dbff3a7 (diff)
downloadlinhes_pkgbuild-332702fe9eaf2db10c7bc2fdf840460e9c119623.zip
linhes_pkgbuild-332702fe9eaf2db10c7bc2fdf840460e9c119623.tar.gz
linhes_pkgbuild-332702fe9eaf2db10c7bc2fdf840460e9c119623.tar.bz2
mythvantage for 0.22, latest mythtv
Diffstat (limited to 'abs/core-testing/LinHES-config-22/mv_webuser.py')
-rwxr-xr-xabs/core-testing/LinHES-config-22/mv_webuser.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/abs/core-testing/LinHES-config-22/mv_webuser.py b/abs/core-testing/LinHES-config-22/mv_webuser.py
deleted file mode 100755
index a8517a8..0000000
--- a/abs/core-testing/LinHES-config-22/mv_webuser.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# -*- coding: utf-8 -*-
-import logging, mv_common
-#import os
-
-def setup_web_auth(UseMythWEB_auth):
- logging.info("____Start of setup_web_auth____")
- if UseMythWEB_auth == str(1):
- #enable auth
- logging.info(" Enabling authorization for mythweb")
- cmd='''sed -i "s/^.*include.*auth-inc.conf.*$/include \\"\/etc\/lighttpd\/auth-inc.conf\\"/g" /etc/lighttpd/lighttpd.conf'''
- mv_common.runcmd(cmd)
- else:
- #disable auth
- logging.info(" Disabling authorization for mythweb")
- cmd='''sed -i "s/^.*include.*auth-inc.conf.*$/#include \\"\/etc\/lighttpd\/auth-inc.conf\\"/g" /etc/lighttpd/lighttpd.conf'''
- mv_common.runcmd(cmd)
- logging.debug("Restarting lighttpd")
- cmd="sudo sv restart lighttpd"
- mv_common.runcmd(cmd)
- logging.info("__End of webauth\n")
-