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