From: Elan Ruusamäe Date: Tue, 22 Nov 2016 18:20:23 +0000 (+0200) Subject: scan /etc/webapps/dehydrated for config X-Git-Tag: auto/th/dehydrated-0.3.1-1~2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=657cacc73854a26bfe7eda50a917aad096393546;p=packages%2Fdehydrated.git scan /etc/webapps/dehydrated for config or should we move app config to /etc/dehydrated? --- diff --git a/dehydrated.spec b/dehydrated.spec index 8402a19..db23dea 100644 --- a/dehydrated.spec +++ b/dehydrated.spec @@ -1,7 +1,7 @@ Summary: letsencrypt/acme client implemented as a shell-script Name: dehydrated Version: 0.3.1 -Release: 0.6 +Release: 0.10 License: MIT Group: Applications/Networking Source0: https://github.com/lukas2511/dehydrated/archive/v%{version}/%{name}-%{version}.tar.gz diff --git a/pld.patch b/pld.patch index f852bea..d9a90f1 100644 --- a/pld.patch +++ b/pld.patch @@ -11,7 +11,7 @@ # Check for config in various locations if [[ -z "${CONFIG:-}" ]]; then - for check_config in "/etc/dehydrated" "/usr/local/etc/dehydrated" "${PWD}" "${SCRIPTDIR}"; do -+ for check_config in "/etc/dehydrated" "/usr/local/etc/dehydrated" "/etc/webapps/letsencrypt.sh" "${PWD}" "${SCRIPTDIR}"; do ++ for check_config in "/etc/dehydrated" "/etc/webapps/dehydrated" "/usr/local/etc/dehydrated" "/etc/webapps/letsencrypt.sh" "${PWD}" "${SCRIPTDIR}"; do if [[ -f "${check_config}/config" ]]; then BASEDIR="${check_config}" CONFIG="${check_config}/config"