generate_secrets: Remove unused initial_password_salt in production.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-12-09 17:50:53 -08:00 committed by Tim Abbott
parent fa7ae6fa7f
commit 347fd80864
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,6 @@ CAMO_CONFIG_FILENAME = '/etc/default/camo'
# Standard, 64-bit tokens
AUTOGENERATED_SETTINGS = [
'avatar_salt',
'initial_password_salt',
'rabbitmq_password',
'shared_secret',
'thumbor_key',
@ -84,6 +83,8 @@ def generate_secrets(development=False):
if need_secret(name):
add_secret(name, generate_random_token(64))
if development and need_secret("initial_password_salt"):
add_secret("initial_password_salt", generate_random_token(64))
if development and need_secret("local_database_password"):
add_secret("local_database_password", generate_random_token(64))