upgrade-zulip-from-git: Fix setting postgres_version.

The new logic to set postgres_version when upgrading never wrote the
configuration file after making its edit.
This commit is contained in:
Tim Abbott 2020-06-18 21:58:07 -07:00
parent 5200598a31
commit 60b800b1ac
1 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,8 @@ if os.path.exists('/etc/init.d/postgresql'):
else:
error_desupported_os(vendor, os_version)
set_config(config_file, 'postgresql', 'version', postgres_version)
with open('/etc/zulip/zulip.conf', 'w') as zulipconf:
config_file.write(zulipconf)
if glob.glob("/usr/share/postgresql/*/extension/tsearch_extras.control"):
# Remove legacy tsearch_extras package references