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
/
le
diff --git
a/bin/le
b/bin/le
index 11963b53042164fcf533b2bfb00662e8a2d6b82b..0ec46b201181ad27837c9064d44d2679b88211f1 100755
(executable)
--- a/
bin/le
+++ b/
bin/le
@@
-1,7
+1,8
@@
#! /bin/sh
set -e
-. "${0%/*}/../config.sh"
-. $home/lib/lib.sh
+prog=$(readlink -e "$0")
+. "${prog%/*}/../config.sh"
+. "$home/lib/lib.sh"
run_as_user "$@"
prepare_tmp le-user