mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
provision: Upgrade support for Fedora to version 33.
Note that the `overwrite_symlink` changes fix a bug introduced in
5c20ee998c, that we need root
permissions to do those operations.
This commit is contained in:
@@ -15,7 +15,7 @@ that's running one of:
|
|||||||
* Ubuntu 20.04 Focal, 18.04 Bionic
|
* Ubuntu 20.04 Focal, 18.04 Bionic
|
||||||
* Debian 10 Buster
|
* Debian 10 Buster
|
||||||
* CentOS 7 (beta)
|
* CentOS 7 (beta)
|
||||||
* Fedora 29 (beta)
|
* Fedora 33 (beta)
|
||||||
* RHEL 7 (beta)
|
* RHEL 7 (beta)
|
||||||
|
|
||||||
You can just run the Zulip provision script on your machine.
|
You can just run the Zulip provision script on your machine.
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ elif [ "$is_rhel" = true ]; then
|
|||||||
yum localinstall -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-latest-x86_64/pgdg-redhat10-10-2.noarch.rpm
|
yum localinstall -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-latest-x86_64/pgdg-redhat10-10-2.noarch.rpm
|
||||||
yum localinstall -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
|
yum localinstall -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
|
||||||
else
|
else
|
||||||
# TODO only fedora29 for now
|
# TODO only fedora33 for now
|
||||||
dnf install -y "https://download.postgresql.org/pub/repos/yum/$PGVER/fedora/fedora-29-x86_64/pgdg-fedora$PGVER-$PGVER-4.noarch.rpm"
|
PGVER=13
|
||||||
|
dnf install -y "https://download.postgresql.org/pub/repos/yum/reporpms/F-33-x86_64/pgdg-fedora-repo-latest.noarch.rpm"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ from scripts.lib.zulip_tools import (
|
|||||||
WARNING,
|
WARNING,
|
||||||
get_dev_uuid_var_path,
|
get_dev_uuid_var_path,
|
||||||
os_families,
|
os_families,
|
||||||
overwrite_symlink,
|
|
||||||
parse_os_release,
|
parse_os_release,
|
||||||
run_as_root,
|
run_as_root,
|
||||||
)
|
)
|
||||||
@@ -108,8 +107,8 @@ elif vendor == "ubuntu" and os_version == "20.10": # groovy
|
|||||||
POSTGRESQL_VERSION = "13"
|
POSTGRESQL_VERSION = "13"
|
||||||
elif vendor == "neon" and os_version == "20.04": # KDE Neon
|
elif vendor == "neon" and os_version == "20.04": # KDE Neon
|
||||||
POSTGRESQL_VERSION = "12"
|
POSTGRESQL_VERSION = "12"
|
||||||
elif vendor == "fedora" and os_version == "29":
|
elif vendor == "fedora" and os_version == "33":
|
||||||
POSTGRESQL_VERSION = "10"
|
POSTGRESQL_VERSION = "13"
|
||||||
elif vendor == "rhel" and os_version.startswith("7."):
|
elif vendor == "rhel" and os_version.startswith("7."):
|
||||||
POSTGRESQL_VERSION = "10"
|
POSTGRESQL_VERSION = "10"
|
||||||
elif vendor == "centos" and os_version == "7":
|
elif vendor == "centos" and os_version == "7":
|
||||||
@@ -135,18 +134,7 @@ COMMON_DEPENDENCIES = [
|
|||||||
"unzip", # Needed for Slack import
|
"unzip", # Needed for Slack import
|
||||||
"crudini", # Used for shell tooling w/ zulip.conf
|
"crudini", # Used for shell tooling w/ zulip.conf
|
||||||
# Puppeteer dependencies from here
|
# Puppeteer dependencies from here
|
||||||
"gconf-service",
|
|
||||||
"libgconf-2-4",
|
|
||||||
"libgtk-3-0",
|
|
||||||
"libatk-bridge2.0-0",
|
|
||||||
"libx11-xcb1",
|
|
||||||
"libxcb-dri3-0",
|
|
||||||
"libgbm1",
|
|
||||||
"libxss1",
|
|
||||||
"fonts-freefont-ttf",
|
|
||||||
"libappindicator1",
|
|
||||||
"xdg-utils",
|
"xdg-utils",
|
||||||
"xvfb",
|
|
||||||
# Puppeteer dependencies end here.
|
# Puppeteer dependencies end here.
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -156,6 +144,19 @@ UBUNTU_COMMON_APT_DEPENDENCIES = [
|
|||||||
"hunspell-en-us",
|
"hunspell-en-us",
|
||||||
"puppet-lint",
|
"puppet-lint",
|
||||||
"default-jre-headless", # Required by vnu-jar
|
"default-jre-headless", # Required by vnu-jar
|
||||||
|
# Puppeteer dependencies from here
|
||||||
|
"fonts-freefont-ttf",
|
||||||
|
"gconf-service",
|
||||||
|
"libappindicator1",
|
||||||
|
"libatk-bridge2.0-0",
|
||||||
|
"libgbm1",
|
||||||
|
"libgconf-2-4",
|
||||||
|
"libgtk-3-0",
|
||||||
|
"libx11-xcb1",
|
||||||
|
"libxcb-dri3-0",
|
||||||
|
"libxss1",
|
||||||
|
"xvfb",
|
||||||
|
# Puppeteer dependencies end here.
|
||||||
*THUMBOR_VENV_DEPENDENCIES,
|
*THUMBOR_VENV_DEPENDENCIES,
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -165,6 +166,17 @@ COMMON_YUM_DEPENDENCIES = [
|
|||||||
"hunspell-en-US",
|
"hunspell-en-US",
|
||||||
"rubygem-puppet-lint",
|
"rubygem-puppet-lint",
|
||||||
"nmap-ncat",
|
"nmap-ncat",
|
||||||
|
"ccache", # Required to build pgroonga from source.
|
||||||
|
# Puppeteer dependencies from here
|
||||||
|
"at-spi2-atk",
|
||||||
|
"GConf2",
|
||||||
|
"gtk3",
|
||||||
|
"libX11-xcb",
|
||||||
|
"libxcb",
|
||||||
|
"libXScrnSaver",
|
||||||
|
"mesa-libgbm",
|
||||||
|
"xorg-x11-server-Xvfb",
|
||||||
|
# Puppeteer dependencies end here.
|
||||||
*YUM_THUMBOR_VENV_DEPENDENCIES,
|
*YUM_THUMBOR_VENV_DEPENDENCIES,
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -323,13 +335,21 @@ def install_yum_deps(deps_to_install: List[str]) -> None:
|
|||||||
# Later steps will ensure PostgreSQL is started
|
# Later steps will ensure PostgreSQL is started
|
||||||
|
|
||||||
# Link in tsearch data files
|
# Link in tsearch data files
|
||||||
overwrite_symlink(
|
run_as_root(
|
||||||
"/usr/share/myspell/en_US.dic",
|
[
|
||||||
f"/usr/pgsql-{POSTGRESQL_VERSION}/share/tsearch_data/en_us.dict",
|
"ln",
|
||||||
|
"-nsf",
|
||||||
|
"/usr/share/myspell/en_US.dic",
|
||||||
|
f"/usr/pgsql-{POSTGRESQL_VERSION}/share/tsearch_data/en_us.dict",
|
||||||
|
]
|
||||||
)
|
)
|
||||||
overwrite_symlink(
|
run_as_root(
|
||||||
"/usr/share/myspell/en_US.aff",
|
[
|
||||||
f"/usr/pgsql-{POSTGRESQL_VERSION}/share/tsearch_data/en_us.affix",
|
"ln",
|
||||||
|
"-nsf",
|
||||||
|
"/usr/share/myspell/en_US.aff",
|
||||||
|
f"/usr/pgsql-{POSTGRESQL_VERSION}/share/tsearch_data/en_us.affix",
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user