diff --git a/python/seaserv/service.py b/python/seaserv/service.py index db59186f..21701e4f 100644 --- a/python/seaserv/service.py +++ b/python/seaserv/service.py @@ -50,14 +50,9 @@ def _load_path_from_env(key, check=True): SERVICE_URL = service_url CCNET_SERVER_ADDR = hostname - if config.has_option('Network', 'PORT'): - CCNET_SERVER_PORT = config.get('Network', 'PORT') - else: - CCNET_SERVER_PORT = 10001 else: print("Warning: SERVICE_URL not set in ccnet.conf") CCNET_SERVER_ADDR = None - CCNET_SERVER_PORT = None SERVICE_URL = None if config.has_option('LDAP', 'HOST'): @@ -65,7 +60,6 @@ def _load_path_from_env(key, check=True): else: LDAP_HOST = None -SERVER_ID = config.get('General', 'ID') config.read(os.path.join(SEAFILE_CENTRAL_CONF_DIR if SEAFILE_CENTRAL_CONF_DIR else SEAFILE_CONF_DIR, 'seafile.conf'))