--- rpms/smeserver-letsencrypt/contribs9/smeserver-letsencrypt.spec 2020/01/17 12:35:05 1.16 +++ rpms/smeserver-letsencrypt/contribs9/smeserver-letsencrypt.spec 2020/03/11 18:36:06 1.21 @@ -1,6 +1,6 @@ %define name smeserver-letsencrypt %define version 0.5 -%define release 10 +%define release 14 Summary: Plugin to enable letsencrypt certificates Name: %{name} Version: %{version} @@ -17,11 +17,13 @@ Patch4: smeserver-letsencrypt-fix-loggin Patch5: smeserver-letsencrypt-fix-logging-reverse.patch Patch6: smeserver-letsencrypt-fix-acme-v01-url.patch Patch7: smeserver-letsencrypt-fix-hook-entry.patch +Patch8: smeserver-letsencrypt-change-cron-entry.patch + BuildRoot: /var/tmp/%{name}-%{version} BuildArchitectures: noarch BuildRequires: e-smith-devtools Requires: e-smith-release >= 9.0 -Requires: dehydrated >= 0.6 +Requires: dehydrated >= 0.6.5 AutoReqProv: no %description @@ -29,6 +31,19 @@ Lets Encrypt is a free, automated, and o https://letsencrypt.org/ %changelog +* Wed Mar 11 2020 Jean-Philipe Pialasse 0.5-14.sme +- take 2: remove dangling cron.daily dir missed in 0.5-12 [SME: 10862] + +* Mon Mar 09 2020 John Crisp 0.5-13.sme +- remove dangling cron.daily dir missed in 0.5-12 [SME: 10862] + +* Sat Jan 18 2020 John Crisp 0.5-12.sme +- forgot to remove template-begin and cron.daily dir [SME: 10862] + +* Fri Jan 17 2020 John Crisp 0.5-11.sme +- force required version to 0.6.5 for EPEL version +- Add new cron template for EPEL version of dehydrated [SME: 10862] + * Fri Jan 17 2020 John Crisp 0.5-10.sme - Fix incorrect HOOK entry in config [SME: 10861] @@ -215,6 +230,10 @@ https://letsencrypt.org/ %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 + +# remove old template +rm -rf root/etc/e-smith/templates/etc/cron.daily %build perl createlinks @@ -276,6 +295,14 @@ if [[ -f /usr/local/bin/domain.txt ]]; then mv -f /usr/local/bin/domains.txt /usr/local/bin/domains.txt.orig; fi +if [[ -d /etc/cron.daily/letsencrypt ]]; +then rm -rf /etc/cron.daily/letsencrypt; +fi + +if [[ -d /etc/e-smith/templates/etc/cron.daily/letsencrypt ]]; +then rm -rf /root/etc/e-smith/templates/etc/cron.daily/letsencrypt +fi + if [[ ! -e /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge ]]; then mkdir -p /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge; fi @@ -283,6 +310,8 @@ fi chmod -R 0775 /home/e-smith/files/ibays/Primary/html/.well-known chown -R apache:shared /home/e-smith/files/ibays/Primary/html/.well-known - - +# remove old template file +if [[ -e /etc/cron.daily/letsencryp ]]; +then rm -rf /etc/cron.daily/letsencrypt +fi %postun