From f6e0c25abb8e697c22781f7a9e84afabd116c1f7 Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 22 Jan 2008 18:58:04 +0000 Subject: [PATCH] Add %ifos linux to post and preun sections. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@314 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/xCAT-server.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server-2.0/xCAT-server.spec b/xCAT-server-2.0/xCAT-server.spec index 71a8ecda2..f2a6e7a79 100644 --- a/xCAT-server-2.0/xCAT-server.spec +++ b/xCAT-server-2.0/xCAT-server.spec @@ -109,6 +109,7 @@ rm -rf $RPM_BUILD_ROOT - Start core rpm for 1.3 work %post +%ifos linux ln -sf $RPM_INSTALL_PREFIX0/sbin/xcatd /usr/sbin/xcatd if [ -x /usr/lib/lsb/install_initd ]; then /usr/lib/lsb/install_initd /etc/init.d/xcatd @@ -120,8 +121,10 @@ fi if [ "$1" = "2" ]; then #only on upgrade... /etc/init.d/xcatd restart fi +%endif %preun +%ifos linux if [ $1 == 0 ]; then #This means only on -e /etc/init.d/xcatd stop if [ -x /usr/lib/lsb/remove_initd ]; then @@ -131,6 +134,7 @@ if [ $1 == 0 ]; then #This means only on -e fi rm -f /usr/sbin/xcatd #remove the symbolic fi +%endif