]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
changed order of config locations to be a bit more sane
authorLukas Schauer <lukas@schauer.so>
Mon, 14 Dec 2015 00:03:32 +0000 (01:03 +0100)
committerLukas Schauer <lukas@schauer.so>
Mon, 14 Dec 2015 00:03:32 +0000 (01:03 +0100)
letsencrypt.sh

index 69aa4a668e6a3e1c19993ca0e95686820b2ef07f..82ff6d1317bfb9ef225da178c683f9424e6304c9 100755 (executable)
@@ -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"