1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 23:48:47 +00:00

12.0 fix write_secret_key (#6664)

This commit is contained in:
欢乐马
2024-08-29 11:05:38 +08:00
committed by GitHub
parent a3d6d81bc6
commit b47227134f

View File

@@ -1056,7 +1056,7 @@ class SeahubConfigurator(AbstractConfigurator):
script, script,
] ]
key = Utils.get_command_output(cmd).strip() key = Utils.get_command_output(cmd).strip()
fp.write('SECRET_KEY = "%s"' % key) fp.write('SECRET_KEY = "%s"' % key.decode())
def write_database_config(self, fp): def write_database_config(self, fp):
template = '''\ template = '''\