Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/agent/tcf
diff options
context:
space:
mode:
Diffstat (limited to 'agent/tcf')
-rw-r--r--agent/tcf/main/tcf-agent.spec5
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/tcf/main/tcf-agent.spec b/agent/tcf/main/tcf-agent.spec
index 91d0b9a5..09072ad2 100644
--- a/agent/tcf/main/tcf-agent.spec
+++ b/agent/tcf/main/tcf-agent.spec
@@ -24,6 +24,7 @@ which provides TCF services that can be used by local and remote clients.
%prep
rm -rf $RPM_BUILD_ROOT
+
%setup
%build
@@ -36,7 +37,9 @@ make %{make_options} install INSTALLROOT=$RPM_BUILD_ROOT SBIN=%{_sbindir} INCLUD
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post
-%{_sbindir}/tcf-agent -c
+if [ ! -r /etc/tcf/ssl/local.priv -o ! -r /etc/tcf/ssl/local.cert ] ; then
+ %{_sbindir}/tcf-agent -c
+fi
chkconfig --add %{name}
/sbin/service %{name} start > /dev/null 2>&1 || :

Back to the top