Handle uwsgi install for CentOS/RHEL
Change-Id: Ifa876b3e5f89258f40055fa7ce03f5e9c601771c
diff --git a/lib/apache b/lib/apache
index 41c2e3d..a3e9f95 100644
--- a/lib/apache
+++ b/lib/apache
@@ -100,7 +100,7 @@
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 @@
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