From ccb7f77d58447741ae9b6f9f8e27d8f7c2cccda2 Mon Sep 17 00:00:00 2001 From: ly1217 Date: Tue, 22 Oct 2019 03:31:41 -0700 Subject: [PATCH] Clear unused ccnet conf options. --- python/seaserv/service.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/python/seaserv/service.py b/python/seaserv/service.py index db59186..21701e4 100644 --- a/python/seaserv/service.py +++ b/python/seaserv/service.py @@ -50,14 +50,9 @@ if config.has_option('General', 'SERVICE_URL'): 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 @@ if config.has_option('LDAP', 'HOST'): 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'))