]> sourceware.org Git - systemtap.git/blob - stap-env
YAAU (Yet Another AUTHORS Update)
[systemtap.git] / stap-env
1 #!/bin/bash
2
3 # Generate a certificate for the systemtap server and add it to the
4 # database of trusted servers for the client.
5 #
6 # Copyright (C) 2009 Red Hat Inc.
7 #
8 # This file is part of systemtap, and is free software. You can
9 # redistribute it and/or modify it under the terms of the GNU General
10 # Public License (GPL); either version 2, or (at your option) any
11 # later version.
12
13 # Common environment setup for stap scripts
14
15 # INSTALL-HOOK These settings work for running the server from the source tree
16 # INSTALL-HOOK using the dejagnu test harness and will be overridden at install
17 # INSTALL-HOOK time.
18 stap_exec_prefix=
19 stap_sysconfdir=`pwd`/net
20
21 # General configuration
22 stap_tmpdir_prefix_client=stap.client
23 stap_tmpdir_prefix_server=stap.server
24 stap_avahi_service_tag=_stap._tcp
25
26 # NSS certificate databases
27 stap_root_ssl_db=$stap_sysconfdir/systemtap/ssl
28 stap_user_ssl_db=$HOME/.systemtap/ssl
29
30 if test $EUID = 0; then
31 stap_ssl_db=$stap_root_ssl_db
32 else
33 stap_ssl_db=$stap_user_ssl_db
34 fi
35
36 stap_signing_db=$stap_sysconfdir/systemtap/staprun
37 stap_certfile=stap.cert
38 stap_old_certfile=stap-server.cert
This page took 0.038221 seconds and 5 git commands to generate.