mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 00:43:53 +00:00
rm notification jwt_private_key
This commit is contained in:
@@ -929,13 +929,6 @@ class SeafileConfigurator(AbstractConfigurator):
|
|||||||
# host=
|
# host=
|
||||||
# port=
|
# port=
|
||||||
# log_level=
|
# 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'
|
db_section = 'notification'
|
||||||
if not config.has_section(db_section):
|
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, 'host', '127.0.0.1')
|
||||||
config.set(db_section, 'port', '8083')
|
config.set(db_section, 'port', '8083')
|
||||||
config.set(db_section, 'log_level', 'info')
|
config.set(db_section, 'log_level', 'info')
|
||||||
config.set(db_section, 'jwt_private_key', jwt_private_key)
|
|
||||||
|
|
||||||
Utils.write_config(config, self.seafile_conf)
|
Utils.write_config(config, self.seafile_conf)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user