From: Mattia Rizzolo <mattia@debian.org>
Date: Thu, 12 Jan 2017 18:19:12 +0100
Subject: Support both 'config.sh' and 'config' as config filenames for
 letsencrypt.sh

---
 letsencrypt.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/letsencrypt.sh b/letsencrypt.sh
index 0ceeda9..44bc9d8 100755
--- a/letsencrypt.sh
+++ b/letsencrypt.sh
@@ -39,10 +39,12 @@ set -- "${tmpargs[@]}"
 # if the user didn't already provide one, look for default config locations
 if [[ -z "${CONFIG:-}" ]]; then
   for check_config in "/etc/letsencrypt.sh" "/usr/local/etc/letsencrypt.sh" "${PWD}" "${SCRIPTDIR}"; do
-    if [[ -f "${check_config}/config" ]]; then
-      CONFIG="${check_config}/config"
-      break
-    fi
+    for name in "config" "config.sh"; do
+      if [[ -f "${check_config}/${name}" ]]; then
+        CONFIG="${check_config}/${name}"
+        break
+      fi
+    done
   done
 fi
 
