From b6c35465dc7b10911c8a90eb96e73c0aa590cf97 Mon Sep 17 00:00:00 2001 From: immarvin Date: Fri, 31 Oct 2014 02:48:33 -0700 Subject: [PATCH] update configuration file for apache2.4 on sles12 --- xCAT/xCAT.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index e418e8b92..4593a7bd4 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -184,6 +184,11 @@ then cp /etc/xcat/conf.orig/xcat.conf.apach24 /etc/apache2/conf.d/xcat.conf fi +if [ -n "$(apache2ctl -v 2>&1 |grep -e '^Server version\s*:.*\/2.4')" ] +then + rm -rf /etc/apache2/conf.d/xcat.conf + cp /etc/xcat/conf.orig/xcat.conf.apach24 /etc/apache2/conf.d/xcat.conf +fi %endif