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
This commit is contained in:
lissav 2010-12-15 16:13:32 +00:00
parent 13dfe4f595
commit b751f62376

View File

@ -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