1 |
%define name smeserver-letsencrypt |
%define name smeserver-letsencrypt |
2 |
%define version 0.5 |
%define version 0.5 |
3 |
%define release 12 |
%define release 14 |
4 |
Summary: Plugin to enable letsencrypt certificates |
Summary: Plugin to enable letsencrypt certificates |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
31 |
https://letsencrypt.org/ |
https://letsencrypt.org/ |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
|
* Wed Mar 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 0.5-14.sme |
35 |
|
- take 2: remove dangling cron.daily dir missed in 0.5-12 [SME: 10862] |
36 |
|
|
37 |
|
* Mon Mar 09 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-13.sme |
38 |
|
- remove dangling cron.daily dir missed in 0.5-12 [SME: 10862] |
39 |
|
|
40 |
* Sat Jan 18 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-12.sme |
* Sat Jan 18 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-12.sme |
41 |
- forgot to remove template-begin and cron.daily dir [SME: 10862] |
- forgot to remove template-begin and cron.daily dir [SME: 10862] |
42 |
|
|
232 |
%patch7 -p1 |
%patch7 -p1 |
233 |
%patch8 -p1 |
%patch8 -p1 |
234 |
|
|
235 |
|
# remove old template |
236 |
|
rm -rf root/etc/e-smith/templates/etc/cron.daily |
237 |
|
|
238 |
%build |
%build |
239 |
perl createlinks |
perl createlinks |
240 |
|
|
295 |
then mv -f /usr/local/bin/domains.txt /usr/local/bin/domains.txt.orig; |
then mv -f /usr/local/bin/domains.txt /usr/local/bin/domains.txt.orig; |
296 |
fi |
fi |
297 |
|
|
|
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 |
|
|
|
|
298 |
if [[ -d /etc/cron.daily/letsencrypt ]]; |
if [[ -d /etc/cron.daily/letsencrypt ]]; |
299 |
then rm -rf /etc/cron.daily/letsencrypt; |
then rm -rf /etc/cron.daily/letsencrypt; |
300 |
fi |
fi |
301 |
|
|
302 |
chmod -R 0775 /home/e-smith/files/ibays/Primary/html/.well-known |
if [[ -d /etc/e-smith/templates/etc/cron.daily/letsencrypt ]]; |
303 |
chown -R apache:shared /home/e-smith/files/ibays/Primary/html/.well-known |
then rm -rf /root/etc/e-smith/templates/etc/cron.daily/letsencrypt |
304 |
|
fi |
305 |
|
|
306 |
|
if [[ ! -e /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge ]]; |
307 |
|
then mkdir -p /home/e-smith/files/ibays/Primary/html/.well-known/acme-challenge; |
308 |
|
fi |
309 |
|
|
310 |
|
chmod -R 0775 /home/e-smith/files/ibays/Primary/html/.well-known |
311 |
|
chown -R apache:shared /home/e-smith/files/ibays/Primary/html/.well-known |
312 |
|
|
313 |
|
# remove old template file |
314 |
|
if [[ -e /etc/cron.daily/letsencryp ]]; |
315 |
|
then rm -rf /etc/cron.daily/letsencrypt |
316 |
|
fi |
317 |
%postun |
%postun |