bin/: Fix preamble to handle invocation through a symlink.
[distorted-letsencrypt] / bin / reissue
index 32301ef..3758327 100755 (executable)
@@ -1,7 +1,8 @@
 #! /bin/sh
 set -e
 usage=""
-. "${0%/*}/../config.sh"
+prog=$(readlink -e "$0")
+. "${prog%/*}/../config.sh"
 . "$home/lib/lib.sh"
 
 run_as_user "$@"