From b751f623760c4efc164d84c904f3bc06bedf208a Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 15 Dec 2010 16:13:32 +0000 Subject: [PATCH] check for empty cfgloc file git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8421 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCATsn/xCATsn.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCATsn/xCATsn.spec b/xCATsn/xCATsn.spec index 8e6b7e152..126b03274 100644 --- a/xCATsn/xCATsn.spec +++ b/xCATsn/xCATsn.spec @@ -88,7 +88,7 @@ if [ "$1" = "1" ]; then #Only if installing for the first time.. %ifos linux if [ -f "/proc/cmdline" ]; then #check to make sure this is not image install - if [ ! -f /etc/xcat/cfgloc ]; then # database is sqlite + if [ ! -s /etc/xcat/cfgloc ]; then # database is sqlite $RPM_INSTALL_PREFIX0/sbin/xcatconfig -d fi fi