summaryrefslogtreecommitdiffstats
path: root/stap-env
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-06-10 11:36:50 -0400
committerDave Brolley <brolley@redhat.com>2009-06-10 11:36:50 -0400
commit36b66efaae572dddcfb04e9a995ca69063d0e1ff (patch)
treeeb8dde475a86c5e9fdd3df112a770ee13071660d /stap-env
parent3309d82e7987310cddd26342b16abfdbf292b29d (diff)
downloadsystemtap-steved-36b66efaae572dddcfb04e9a995ca69063d0e1ff.tar.gz
systemtap-steved-36b66efaae572dddcfb04e9a995ca69063d0e1ff.tar.xz
systemtap-steved-36b66efaae572dddcfb04e9a995ca69063d0e1ff.zip
Respect SYSTEMTAP_DIR when looking for nss certificate databases.
Diffstat (limited to 'stap-env')
-rwxr-xr-xstap-env6
1 files changed, 5 insertions, 1 deletions
diff --git a/stap-env b/stap-env
index 8d765ae6..ceeca465 100755
--- a/stap-env
+++ b/stap-env
@@ -25,7 +25,11 @@ stap_avahi_service_tag=_stap._tcp
# NSS certificate databases
stap_root_ssl_db=$stap_sysconfdir/systemtap/ssl
-stap_user_ssl_db=$HOME/.systemtap/ssl
+if test "X$SYSTEMTAP_DIR" = "X"; then
+ stap_user_ssl_db=$HOME/.systemtap/ssl
+else
+ stap_user_ssl_db=$SYSTEMTAP_DIR/ssl
+fi
if test $EUID = 0; then
stap_ssl_db=$stap_root_ssl_db