diff --git a/scripts/setup/generate_enterprise_secrets.py b/scripts/setup/generate_enterprise_secrets.py index 0390f8466a..33a6001d46 100755 --- a/scripts/setup/generate_enterprise_secrets.py +++ b/scripts/setup/generate_enterprise_secrets.py @@ -11,7 +11,6 @@ from zerver.lib.utils import generate_random_token os.chdir(os.path.join(os.path.dirname(__file__), '..', '..')) -OUTPUT_SETTINGS_FILENAME = "zproject/dev-secrets.conf" CAMO_CONFIG_FILENAME = '/etc/default/camo' AUTOGENERATED_SETTINGS = ['shared_secret', 'avatar_salt', 'rabbitmq_password', 'local_database_password', @@ -35,6 +34,11 @@ def generate_django_secretkey(): return get_random_string(50, chars) def generate_secrets(development=False): + if development: + OUTPUT_SETTINGS_FILENAME = "zproject/dev-secrets.conf" + else: + OUTPUT_SETTINGS_FILENAME = "/etc/zulip/zulip-secrets.conf" + lines = ['[secrets]\n'] def config_line(var, value):