Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compare-settings-to-template: Handle prod_settings_template renaming.

Alex Vandiver3476f63dca3b
diff --git a/scripts/setup/compare-settings-to-template b/scripts/setup/compare-settings-to-template
index 63c9a9ee250..92a058dc087 100755
--- a/scripts/setup/compare-settings-to-template
+++ b/scripts/setup/compare-settings-to-template
@@ -38,9 +38,13 @@ while url is not None:
if not re.match(r"^\d+\.\d+(\.\d+)?$", tag):
continue
+ filename = "zproject/prod_settings_template.py"
+ if [int(x) for x in tag.split(".")] < [1, 4]:
+ filename = "zproject/local_settings_template.py"
+
print(f" - {tag}")
resp = requests.get(
- f"https://raw.githubusercontent.com/zulip/zulip/{tag}/zproject/prod_settings_template.py",
+ f"https://raw.githubusercontent.com/zulip/zulip/{tag}/{filename}",
)
if resp.status_code == 200:
templ[tag] = resp.content.decode()