From 5120dfb5f33917dc83f6a6a4bd80d8d07e7c0722 Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Mon, 14 Dec 2015 01:03:32 +0100 Subject: [PATCH] changed order of config locations to be a bit more sane --- letsencrypt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letsencrypt.sh b/letsencrypt.sh index 69aa4a6..82ff6d1 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -39,7 +39,7 @@ set_defaults() { init_system() { # Check for config in various locations if [[ -z "${CONFIG:-}" ]]; then - for check_config in "${SCRIPTDIR}" "${HOME}/.letsencrypt.sh" "/usr/local/etc/letsencrypt.sh" "/etc/letsencrypt.sh" "${PWD}"; do + for check_config in "${HOME}/.letsencrypt.sh" "/etc/letsencrypt.sh" "/usr/local/etc/letsencrypt.sh" "${PWD}" "${SCRIPTDIR}"; do if [[ -e "${check_config}/config.sh" ]]; then BASEDIR="${check_config}" CONFIG="${check_config}/config.sh" -- 2.47.2