mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-28 03:51:06 +01:00
changed order of config locations to be a bit more sane
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user