From 4e1d6fd0b8451d027e34012d7f7331751cb58d4c Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Wed, 21 May 2008 17:45:27 +0000 Subject: [PATCH] fixed error in xCATsn spec file w/chking for /proc git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1465 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCATsn/xCATsn.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCATsn/xCATsn.spec b/xCATsn/xCATsn.spec index 309eb188f..965b23db1 100644 --- a/xCATsn/xCATsn.spec +++ b/xCATsn/xCATsn.spec @@ -57,11 +57,11 @@ if [ "$1" = "1" ]; then #Only if installing for the first time.. ### Start the xcatd daemon chkconfig httpd on - if (-f '/proc/cmdline') { # this check avoids running these when being installed into a chroot image + if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image XCATROOT=$RPM_INSTALL_PREFIX0 /etc/init.d/xcatd start /etc/rc.d/init.d/httpd stop /etc/rc.d/init.d/httpd start - } + fi echo "xCATsn is now installed" fi