Skip to main content
summaryrefslogtreecommitdiffstats
path: root/agent/tcf
diff options
context:
space:
mode:
authorEugene Tarassov2011-11-23 15:52:32 -0500
committerEugene Tarassov2011-11-23 15:52:32 -0500
commitdafe1eefa355d67b2f9de21b90914077c1194ef0 (patch)
tree7a2551aa9775e4f9815f1d9fb5abcbbbb5493f97 /agent/tcf
parente3bbb83365091fec1ec1d63a396fbf13efc32fbc (diff)
downloadorg.eclipse.tcf.agent-dafe1eefa355d67b2f9de21b90914077c1194ef0.tar.gz
org.eclipse.tcf.agent-dafe1eefa355d67b2f9de21b90914077c1194ef0.tar.xz
org.eclipse.tcf.agent-dafe1eefa355d67b2f9de21b90914077c1194ef0.zip
TCF Agent: fixed: re-installing TCF RPM should not overwrite existing agent SSL certificate.
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