From 6795ff6d11c4c5af9a182da1ba9e4d6e976f7f0b Mon Sep 17 00:00:00 2001 From: immarvin Date: Mon, 21 Apr 2014 03:20:55 -0700 Subject: [PATCH] fix defect #4044 xCAT spec file %post additons not checking for AIX Edit --- xCAT/xCAT.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index e33f69823..7d0410235 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -163,6 +163,7 @@ cp LICENSE.html $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT %post +%ifos linux #Apply the correct httpd/apache configuration file according to the httpd/apache version if expr match $(rpm -q --queryformat "%{VERSION}" httpd) '^2.4[\.0-9]*$' >/dev/null 2>&1 then @@ -178,6 +179,7 @@ then else ln -s -f /etc/apache2/conf.d/xcat.conf.apach22 /etc/apache2/conf.d/xcat.conf fi +%endif # create dir for the current pid mkdir -p /var/run/xcat