1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

rm notification jwt_private_key

This commit is contained in:
skywalker
2024-09-10 16:01:34 +08:00
parent ec414edc67
commit db1777d1bd

View File

@@ -929,13 +929,6 @@ class SeafileConfigurator(AbstractConfigurator):
# host=
# port=
# log_level=
# jwt_private_key=
script = os.path.join(env_mgr.install_path, 'seahub/tools/secret_key_generator.py')
cmd = [
Utils.get_python_executable(),
script,
]
jwt_private_key = Utils.get_command_output(cmd).strip().decode('utf8').replace('%', '')
db_section = 'notification'
if not config.has_section(db_section):
@@ -944,7 +937,6 @@ class SeafileConfigurator(AbstractConfigurator):
config.set(db_section, 'host', '127.0.0.1')
config.set(db_section, 'port', '8083')
config.set(db_section, 'log_level', 'info')
config.set(db_section, 'jwt_private_key', jwt_private_key)
Utils.write_config(config, self.seafile_conf)