Handle uwsgi install for openSUSE

Add packages for openSUSE distribution for installation of uwsgi.

For train add in addition:
Add /usr/local/bin to PATH, this is not set on openSUSE and needed
to fix the setup after the pip/virtualenv changes.

Co-Authored-By: Jens Harbott <j.harbott@x-ion.de>
Change-Id: I2ce8959460a79b6472bd9dd59edd7d94eccbacf5
(cherry-picked from commit 10c3ffd265)
This commit is contained in:
Andreas Jaeger 2020-06-15 10:03:42 +02:00
parent 20e04092c8
commit 07a1731404
2 changed files with 7 additions and 0 deletions

View File

@ -109,6 +109,10 @@ function install_apache_uwsgi {
# Thus there is nothing else to do after this install
install_package uwsgi \
uwsgi-plugin-python3
elif [[ $os_VENDOR =~ openSUSE ]]; then
install_package 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

View File

@ -69,6 +69,9 @@ umask 022
# Not all distros have sbin in PATH for regular users.
PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
# Add for openSUSE
PATH=$PATH:/usr/local/bin
# Keep track of the DevStack directory
TOP_DIR=$(cd $(dirname "$0") && pwd)