From 07a17314041d7589547a568dec2608e92a26dc94 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 15 Jun 2020 10:03:42 +0200 Subject: [PATCH] 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 Change-Id: I2ce8959460a79b6472bd9dd59edd7d94eccbacf5 (cherry-picked from commit 10c3ffd26557f1921841e456b003a77f6fb11948) --- lib/apache | 4 ++++ stack.sh | 3 +++ 2 files changed, 7 insertions(+) diff --git a/lib/apache b/lib/apache index a31188bebb..41c2e3d8dd 100644 --- a/lib/apache +++ b/lib/apache @@ -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 diff --git a/stack.sh b/stack.sh index b7b37e2cf6..29a8aa31f7 100755 --- a/stack.sh +++ b/stack.sh @@ -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)