mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 08:28:11 +00:00
rm CCNET_CONF_DIR (#7670)
This commit is contained in:
@@ -320,20 +320,16 @@ class EnvManager(object):
|
||||
for path in paths:
|
||||
error_if_not_exists(path)
|
||||
|
||||
if os.path.exists(ccnet_config.ccnet_dir):
|
||||
Utils.error('Ccnet config dir \"%s\" already exists.' % ccnet_config.ccnet_dir)
|
||||
|
||||
def get_seahub_env(self):
|
||||
'''Prepare for seahub syncdb'''
|
||||
env = dict(os.environ)
|
||||
env['CCNET_CONF_DIR'] = ccnet_config.ccnet_dir
|
||||
env['SEAFILE_CONF_DIR'] = seafile_config.seafile_dir
|
||||
env['SEAFES_DIR'] = os.path.join(self.install_path, 'pro', 'python', 'seafes')
|
||||
self.setup_python_path(env)
|
||||
return env
|
||||
|
||||
def setup_python_path(self, env):
|
||||
'''And PYTHONPATH and CCNET_CONF_DIR/SEAFILE_CONF_DIR to env, which is
|
||||
'''And PYTHONPATH and SEAFILE_CONF_DIR to env, which is
|
||||
needed by seahub
|
||||
|
||||
'''
|
||||
@@ -761,15 +757,6 @@ class CcnetConfigurator(AbstractConfigurator):
|
||||
self.ask_server_ip_or_domain()
|
||||
# self.ask_port()
|
||||
|
||||
def generate(self):
|
||||
print('Generating ccnet configuration ...\n')
|
||||
with open(self.ccnet_conf, 'w') as fp:
|
||||
fp.write('[General]')
|
||||
|
||||
self.generate_db_conf()
|
||||
|
||||
Utils.must_mkdir(self.ccnet_dir)
|
||||
|
||||
def generate_db_conf(self):
|
||||
config = Utils.read_config(self.ccnet_conf)
|
||||
# [Database]
|
||||
@@ -1362,7 +1349,6 @@ def set_file_perm():
|
||||
]
|
||||
dirs = [
|
||||
env_mgr.central_config_dir,
|
||||
ccnet_config.ccnet_dir,
|
||||
seafile_config.seafile_dir,
|
||||
seahub_config.seahub_settings_py,
|
||||
]
|
||||
@@ -1541,8 +1527,6 @@ def main():
|
||||
|
||||
# Part 2: generate configuration
|
||||
db_config.generate()
|
||||
# ccnet_config.generate() # do not create ccnet.conf
|
||||
Utils.must_mkdir(ccnet_config.ccnet_dir)
|
||||
seafile_config.generate()
|
||||
seafdav_config.generate()
|
||||
gunicorn_config.generate()
|
||||
|
Reference in New Issue
Block a user