summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/MythVantage-config/mv_webuser.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/mv-core/MythVantage-config/mv_webuser.py')
-rwxr-xr-xabs/mv-core/MythVantage-config/mv_webuser.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/abs/mv-core/MythVantage-config/mv_webuser.py b/abs/mv-core/MythVantage-config/mv_webuser.py
deleted file mode 100755
index a8517a8..0000000
--- a/abs/mv-core/MythVantage-config/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")
-