Skip to content

Commit 07a1731

Browse files
ajaegerjharbott
andcommitted
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 10c3ffd)
1 parent 20e0409 commit 07a1731

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎lib/apache‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ function install_apache_uwsgi {
109109
# Thus there is nothing else to do after this install
110110
install_package uwsgi \
111111
uwsgi-plugin-python3
112+
elif [[ $os_VENDOR =~ openSUSE ]]; then
113+
install_package uwsgi \
114+
uwsgi-python3 \
115+
apache2-mod_uwsgi
112116
else
113117
# Centos actually has the module in epel, but there was a big
114118
# push to disable epel by default. As such, compile from source

‎stack.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ umask 022
6969
# Not all distros have sbin in PATH for regular users.
7070
PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
7171

72+
# Add for openSUSE
73+
PATH=$PATH:/usr/local/bin
74+
7275
# Keep track of the DevStack directory
7376
TOP_DIR=$(cd $(dirname "$0") && pwd)
7477

0 commit comments

Comments
 (0)