diff options
author | James Meyer <james.meyer@operamail.com> | 2011-12-08 22:18:56 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2011-12-08 22:18:56 (GMT) |
commit | c0d6b85efd2c93411be26976412e0fd8924d62a0 (patch) | |
tree | 5f50dec5f25312e91a52a359f169986eec823cdb /abs/core/LinHES-config/mv_hostype.py | |
parent | 11b3a83607f4c6abf84875a22d36ab6593c831d8 (diff) | |
download | linhes_pkgbuild-c0d6b85efd2c93411be26976412e0fd8924d62a0.zip linhes_pkgbuild-c0d6b85efd2c93411be26976412e0fd8924d62a0.tar.gz linhes_pkgbuild-c0d6b85efd2c93411be26976412e0fd8924d62a0.tar.bz2 |
LinHES-config: move network module to top of the list. When multiple modules are run and network is in the list, network will run first.
-Add support for creating the .mythtv dir if it's not present
-simple logic to catch an error if the network can not be reached, when checking for extra support for func,xymon.
Diffstat (limited to 'abs/core/LinHES-config/mv_hostype.py')
-rwxr-xr-x | abs/core/LinHES-config/mv_hostype.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/abs/core/LinHES-config/mv_hostype.py b/abs/core/LinHES-config/mv_hostype.py index 9f26e57..bdc12f4 100755 --- a/abs/core/LinHES-config/mv_hostype.py +++ b/abs/core/LinHES-config/mv_hostype.py @@ -101,7 +101,7 @@ def setup_mysql_connection(systemconfig): dbhost = systemconfig.get("dbhost") uuid = gen_uuid() config_xml=generate_config_xml(uuid,dbhost) - + mv_common.mkdir_mythhome(data_config.MYTHHOME) if systemtype == "Master_backend": @@ -244,10 +244,15 @@ def hostypeprint(systemconfig): logging.info("______Start of hostype config_____") url = 'http://%s:1337/extra.cfg.txt' %systemconfig.get("dbhost") - ex = mv_common.config_extra_reader(url) - xymon_supported=ex.read_config('xymon') - rsyslog_network=ex.read_config('rsyslog_network') - func_supported=ex.read_config('func') + try: + ex = mv_common.config_extra_reader(url) + xymon_supported=ex.read_config('xymon') + rsyslog_network=ex.read_config('rsyslog_network') + func_supported=ex.read_config('func') + except: + xymon_supported=False + rsyslog_network=False + func_supported=False mv_common.services(systemconfig) install_list='' |