summaryrefslogtreecommitdiffstats
path: root/stap-serverd
diff options
context:
space:
mode:
Diffstat (limited to 'stap-serverd')
-rwxr-xr-xstap-serverd7
1 files changed, 5 insertions, 2 deletions
diff --git a/stap-serverd b/stap-serverd
index b422deaa..4eee8c38 100755
--- a/stap-serverd
+++ b/stap-serverd
@@ -52,12 +52,15 @@ function initialization {
${stap_exec_prefix}stap-gen-cert $ssl_db || exit 1
# Now add the server's certificate to the client's database,
# making it a trusted peer. Do this only if the client has been installed.
- if test -f `which ${stap_exec_prefix}stap-add-server-cert` -a -x `which ${stap_exec_prefix}stap-add-server-cert`; then
+ if test -f `which ${stap_exec_prefix}stap-client` -a \
+ -x `which ${stap_exec_prefix}stap-client`; then
${stap_exec_prefix}stap-authorize-server-cert $ssl_db/$stap_certfile
fi
elif ! test -f $stap_ssl_db/client/cert8.db; then
# If the client's database does not exist, then initialize it with our certificate.
- if test -f `which ${stap_exec_prefix}stap-add-server-cert` -a -x `which ${stap_exec_prefix}stap-add-server-cert`; then
+ # Do this only if the client has been installed.
+ if test -f `which ${stap_exec_prefix}stap-client` -a \
+ -x `which ${stap_exec_prefix}stap-client`; then
${stap_exec_prefix}stap-authorize-server-cert $ssl_db/$stap_certfile
fi
fi