Summary: letsencrypt/acme client implemented as a shell-script
Name: letsencrypt.sh
Version: 0.1.0
-Release: 0.3
+Release: 0.4
License: MIT
Group: Applications/Networking
Source0: https://github.com/lukas2511/letsencrypt.sh/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: apache.conf
Source2: lighttpd.conf
Source3: config.sh
+Patch0: pld.patch
URL: https://github.com/lukas2511/letsencrypt.sh
BuildRequires: rpmbuild(macros) >= 1.713
Requires: curl
%prep
%setup -q
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
--- /dev/null
+--- letsencrypt.sh-0.1.0/letsencrypt.sh 2016-03-25 21:35:01.000000000 +0200
++++ letsencrypt.sh-0.1.0/letsencrypt.sh 2016-05-14 15:51:55.000000000 +0300
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env bash
++#!/bin/bash
+
+ # letsencrypt.sh by lukas2511
+ # Source: https://github.com/lukas2511/letsencrypt.sh
+@@ -42,7 +42,7 @@
+ load_config() {
+ # Check for config in various locations
+ if [[ -z "${CONFIG:-}" ]]; then
+- for check_config in "/etc/letsencrypt.sh" "/usr/local/etc/letsencrypt.sh" "${PWD}" "${SCRIPTDIR}"; do
++ for check_config in "/etc/letsencrypt.sh" "/etc/webapps/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"