Signed-off-by: Cleber Rosa <[email protected]>
---
 contrib/install-autotest-server.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/contrib/install-autotest-server.sh 
b/contrib/install-autotest-server.sh
index 77b1c6a..83dbe2b 100755
--- a/contrib/install-autotest-server.sh
+++ b/contrib/install-autotest-server.sh
@@ -205,6 +205,16 @@ else
     print_log "INFO" "Installing all packages (${PACKAGES_ALL[*]})"
     yum install -y ${PACKAGES_ALL[*]} >> $LOG 2>&1
 fi
+
+# If both mod_wsgi and mod_python are installed, removed the latter
+rpm -q mod_python 1>/dev/null 2>&1
+if [ $? == 0 ]; then
+    rpm -q mod_wsgi 1>/dev/null 2>&1
+    if [ $? == 0 ]; then
+       print_log "INFO" "Removing mod_python because mod_wsgi is also 
installed"
+       yum -y remove mod_python >> $LOG 2>1&
+    fi
+fi
 }
 
 install_packages_deb() {
-- 
1.7.11.7

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to