Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creates a symlink to the .so file in postint for mod_wsgi #5443

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions install_files/securedrop-app-code/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ function adjust_wsgi_configuration {
perl -pi -e 's/^WSGIProcessGroup journalist.*\n//' "$journalist_conf"
fi
fi
# Create the WSGI so file link if only on Python3.8
wsgi_so_link="/opt/venvs/securedrop-app-code/lib/python3.8/site-packages/mod_wsgi/server/mod_wsgi-py38.so"
wsgi_so="/opt/venvs/securedrop-app-code/lib/python3.8/site-packages/mod_wsgi/server/mod_wsgi-py38.cpython-38-x86_64-linux-gnu.so"
if test -f "/usr/bin/python3.8"; then
if test ! -L $wsgi_so_link; then
ln -s $wsgi_so $wsgi_so_link
fi
fi
}

# Manage PaX flags for web app, only required under Xenial.
Expand Down