From 13dfe4f5951250b725ed20bb275ef08a803b71dc Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 15 Dec 2010 15:47:28 +0000 Subject: [PATCH] Add call to xcatconfig -d on the Service Node if linux and if the /etc/xcat/cfgloc file is missing so no xcatd errors git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8420 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCATsn/xCATsn.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/xCATsn/xCATsn.spec b/xCATsn/xCATsn.spec index 8054bc25e..8e6b7e152 100644 --- a/xCATsn/xCATsn.spec +++ b/xCATsn/xCATsn.spec @@ -15,7 +15,7 @@ Source1: xcat.conf Source2: license.tar.gz Source3: xCATSN Provides: xCATsn = %{version} -Requires: xCAT-server xCAT-client perl-xCAT +Requires: xCAT-server xCAT-client perl-xCAT perl-DBD-SQLite %ifos linux Requires: perl-XML-Parser @@ -81,7 +81,19 @@ cp %{SOURCE3} $RPM_BUILD_ROOT/etc/xCATSN %post + if [ "$1" = "1" ]; then #Only if installing for the first time.. + +# setup sqlite if no other database + +%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 + $RPM_INSTALL_PREFIX0/sbin/xcatconfig -d + fi +fi +%endif + # so conserver will start mkdir -p /var/log/consoles