From c2c2b6b415a4289ab740e7506f68e820ecbc5818 Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Mon, 15 Jun 2020 12:48:38 +0200 Subject: [PATCH] Handle uwsgi install for CentOS/RHEL Change-Id: Ifa876b3e5f89258f40055fa7ce03f5e9c601771c --- lib/apache | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/apache b/lib/apache index 41c2e3d8dd..a3e9f95d4e 100644 --- a/lib/apache +++ b/lib/apache @@ -100,7 +100,7 @@ function install_apache_uwsgi { uwsgi-plugin-python \ uwsgi-plugin-python3 \ libapache2-mod-proxy-uwsgi - elif [[ $os_VENDOR == "Fedora" ]]; then + elif is_fedora; then # Note httpd comes with mod_proxy_uwsgi and it is loaded by # default; the mod_proxy_uwsgi package actually conflicts now. # See: @@ -114,9 +114,7 @@ function install_apache_uwsgi { uwsgi-python3 \ apache2-mod_uwsgi else - # Centos actually has the module in epel, but there was a big - # push to disable epel by default. As such, compile from source - # there. + # Compile uwsgi from source. local dir dir=$(mktemp -d) pushd $dir