Commit 5120dfb5 authored by Lukas Schauer's avatar Lukas Schauer

changed order of config locations to be a bit more sane

parent 70685901
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment