diff --git a/bin/ca-create-cert b/bin/ca-create-cert index 6bcef22..91fdada 100755 --- a/bin/ca-create-cert +++ b/bin/ca-create-cert @@ -1,6 +1,6 @@ #!/bin/bash -source $(dirname $(dirname $0))/../lib/ca-functions +source $(dirname $(readlink -f $0))/../lib/ca-functions ALT_NAMES=() QUALIFY=1 diff --git a/bin/ca-init b/bin/ca-init index 31f3be7..f646ff1 100755 --- a/bin/ca-init +++ b/bin/ca-init @@ -1,6 +1,6 @@ #!/bin/bash -source $(dirname $(dirname $0))/../lib/ca-functions +source $(dirname $(readlink -f $0))/../lib/ca-functions # XXX: Add an interactive mode to this script to obviate the need for a # pre-existing config file? e.g. diff --git a/bin/ca-list-certs b/bin/ca-list-certs index ef309d9..2b1e24d 100755 --- a/bin/ca-list-certs +++ b/bin/ca-list-certs @@ -1,6 +1,6 @@ #!/bin/bash -source $(dirname $(dirname $0))/../lib/ca-functions +source $(dirname $(readlink -f $0))/../lib/ca-functions usage() { cat <<__EOT__ diff --git a/bin/ca-renew-cert b/bin/ca-renew-cert index f4a00fa..847a9b1 100755 --- a/bin/ca-renew-cert +++ b/bin/ca-renew-cert @@ -1,6 +1,6 @@ #!/bin/bash -source $(dirname $(dirname $0))/../lib/ca-functions +source $(dirname $(readlink -f $0))/../lib/ca-functions usage() { cat <<__EOT__ diff --git a/bin/ca-revoke-cert b/bin/ca-revoke-cert index 59b372f..bf2edc7 100755 --- a/bin/ca-revoke-cert +++ b/bin/ca-revoke-cert @@ -1,6 +1,6 @@ #!/bin/sh -source $(dirname $(dirname $0))/../lib/ca-functions +source $(dirname $(readlink -f $0))/../lib/ca-functions usage() { cat <<__EOT__ diff --git a/lib/ca-functions b/lib/ca-functions index 4a71d6e..9072b7c 100644 --- a/lib/ca-functions +++ b/lib/ca-functions @@ -3,7 +3,7 @@ PROGNAME=$( basename $0 ) CONFFILE="/etc/ca-scripts.conf" -SHAREDIR=$(dirname $(dirname $0))/../tpl +SHAREDIR=$(dirname $(readlink -f $0))/../tpl CRYPTKEY="-nodes" INDEXTPL="index-html"