Honor PYTHON3_VERSION for mod_wsgi rpm installation
Different variants of mod_wsgi are provided like:-
python3-mod_wsgi.x86_64
python3.11-mod_wsgi.x86_64
python3.12-mod_wsgi.x86_64
Adjust script to also consider PYTHON3_VERSION var
to correctly install the package.
Related-Bug: #2109591
Change-Id: I6bbfd92ef727ef9b343cd5778bb78f43c13165ad
diff --git a/lib/apache b/lib/apache
index 744c0f1..5ab74b7 100644
--- a/lib/apache
+++ b/lib/apache
@@ -137,7 +137,7 @@
install_package libapache2-mod-wsgi-py3
elif is_fedora; then
sudo rm -f /etc/httpd/conf.d/000-*
- install_package httpd python3-mod_wsgi
+ install_package httpd python${PYTHON3_VERSION}-mod_wsgi
# rpm distros dont enable httpd by default so enable it to support reboots.
sudo systemctl enable httpd
# For consistency with Ubuntu, switch to the worker mpm, as