generate_secrets: Remove unused local_database_password in production.

Fixes #13464.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-12-04 20:48:29 -08:00 committed by Tim Abbott
parent d9c6471ea7
commit 7ebba2901a
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,6 @@ CAMO_CONFIG_FILENAME = '/etc/default/camo'
AUTOGENERATED_SETTINGS = [
'avatar_salt',
'initial_password_salt',
'local_database_password',
'rabbitmq_password',
'shared_secret',
'thumbor_key',
@ -85,6 +84,9 @@ def generate_secrets(development=False):
if need_secret(name):
add_secret(name, generate_random_token(64))
if development and need_secret("local_database_password"):
add_secret("local_database_password", generate_random_token(64))
if need_secret('secret_key'):
add_secret('secret_key', generate_django_secretkey())