Skip to content

Commit

Permalink
Clear unused ccnet conf options.
Browse files Browse the repository at this point in the history
  • Loading branch information
ly1217 committed Oct 22, 2019
1 parent c9b2929 commit ccb7f77
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions python/seaserv/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,16 @@ 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'):
LDAP_HOST = config.get('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'))

Expand Down

0 comments on commit ccb7f77

Please sign in to comment.