Use uwsgi binary from path

In-line with devstack patch [1], switch invocations to find uwsgi in the
path.

[1] https://review.opendev.org/#/c/577779/

Change-Id: I5e6aee49f434820881051874c9ad2628b4fcada7
This commit is contained in:
Carlos Goncalves 2020-06-17 10:59:29 +02:00
parent 24acbe099b
commit e5951ced5f

View File

@ -185,7 +185,7 @@ function _cleanup_octavia_apache_wsgi {
function _start_octavia_apache_wsgi { function _start_octavia_apache_wsgi {
if [[ "$WSGI_MODE" == "uwsgi" ]]; then if [[ "$WSGI_MODE" == "uwsgi" ]]; then
run_process o-api "$OCTAVIA_BIN_DIR/uwsgi --ini $OCTAVIA_UWSGI_CONF" run_process o-api "$(which uwsgi) --ini $OCTAVIA_UWSGI_CONF"
enable_apache_site octavia-wsgi enable_apache_site octavia-wsgi
else else
enable_apache_site octavia enable_apache_site octavia