1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00

rm ccnet.conf (#7028)

This commit is contained in:
欢乐马
2024-11-11 20:05:26 +08:00
committed by GitHub
parent bf4f101a06
commit a5d4870526
6 changed files with 32 additions and 73 deletions

View File

@@ -894,7 +894,6 @@ class SeafileConfigurator(AbstractConfigurator):
fp.write('[fileserver]\nport=%d\n' % self.fileserver_port)
self.generate_db_conf()
self.generate_notification_conf()
## use default seafile-data path: seafile_data_dir=${TOPDIR}/seafile-data
@@ -922,24 +921,6 @@ class SeafileConfigurator(AbstractConfigurator):
Utils.write_config(config, self.seafile_conf)
def generate_notification_conf(self):
config = Utils.read_config(self.seafile_conf)
# [notification]
# enabled=
# host=
# port=
# log_level=
db_section = 'notification'
if not config.has_section(db_section):
config.add_section(db_section)
config.set(db_section, 'enabled', 'false')
config.set(db_section, 'host', '127.0.0.1')
config.set(db_section, 'port', '8083')
config.set(db_section, 'log_level', 'info')
Utils.write_config(config, self.seafile_conf)
def validate_seafile_dir(self, path):
if os.path.exists(path):
raise InvalidAnswer('%s already exists' % Utils.highlight(path))
@@ -1562,7 +1543,7 @@ def main():
# Part 2: generate configuration
db_config.generate()
ccnet_config.generate()
# ccnet_config.generate() # do not create ccnet.conf
seafile_config.generate()
seafdav_config.generate()
gunicorn_config.generate()