bin/: Fix preamble to handle invocation through a symlink.
[distorted-letsencrypt] / bin / le
1 #! /bin/sh
2 set -e
3 prog=$(readlink -e "$0")
4 . "${prog%/*}/../config.sh"
5 . "$home/lib/lib.sh"
6
7 run_as_user "$@"
8 prepare_tmp le-user
9 make_le_conf
10
11 exec $home/letsencrypt/letsencrypt-auto -c "$tmp/le.conf" "$@"