chiark
/
gitweb
/
~mdw
/
distorted-letsencrypt
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bin/: Fix preamble to handle invocation through a symlink.
[distorted-letsencrypt]
/
bin
/
make-cert
diff --git
a/bin/make-cert
b/bin/make-cert
index b6a86dfdaa2f6d99aac30fb2af291a7be0859b17..19808c6ca2bfc221bdd5e73af1f78186a46a5692 100755
(executable)
--- a/
bin/make-cert
+++ b/
bin/make-cert
@@
-1,7
+1,8
@@
#! /bin/sh
set -e
usage=" TAG"
-. "${0%/*}/../config.sh"
+prog=$(readlink -e "$0")
+. "${prog%/*}/../config.sh"
. "$home/lib/lib.sh"
run_as_user "$@"