mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
build-tsearch-extras: Add support for Debian/Ubuntu.
This commit is contained in:
@@ -14,7 +14,8 @@ ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__f
|
||||
|
||||
sys.path.append(ZULIP_PATH)
|
||||
from scripts.lib.zulip_tools import run, run_as_root, OKBLUE, ENDC, WARNING, \
|
||||
get_dev_uuid_var_path, FAIL, parse_lsb_release, file_or_package_hash_updated
|
||||
get_dev_uuid_var_path, FAIL, parse_lsb_release, file_or_package_hash_updated, \
|
||||
overwrite_symlink
|
||||
from scripts.lib.setup_venv import (
|
||||
VENV_DEPENDENCIES, REDHAT_VENV_DEPENDENCIES,
|
||||
THUMBOR_VENV_DEPENDENCIES, YUM_THUMBOR_VENV_DEPENDENCIES,
|
||||
@@ -338,6 +339,12 @@ def install_yum_deps(deps_to_install, retry=False):
|
||||
run_as_root(["cp", "-a", "puppet/zulip/files/postgresql/centos_pg_hba.conf", pg_hba_conf])
|
||||
# Later steps will ensure postgres is started
|
||||
|
||||
# Link in tsearch data files
|
||||
overwrite_symlink("/usr/share/myspell/en_US.dic", "/usr/pgsql-%s/share/tsearch_data/en_us.dict"
|
||||
% (POSTGRES_VERSION,))
|
||||
overwrite_symlink("/usr/share/myspell/en_US.aff", "/usr/pgsql-%s/share/tsearch_data/en_us.affix"
|
||||
% (POSTGRES_VERSION,))
|
||||
|
||||
def main(options):
|
||||
# type: (Any) -> int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user