enable certbot-renew.timer, modify cron.weekly/certbot to only reload web servers [release 2.10.0-2mamba;Mon May 13 2024]
This commit is contained in:
parent
a719b05f78
commit
df505b7816
19
certbot.spec
19
certbot.spec
@ -1,6 +1,6 @@
|
|||||||
Name: certbot
|
Name: certbot
|
||||||
Version: 2.10.0
|
Version: 2.10.0
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A fully-featured, extensible client for the Let's Encrypt CA
|
Summary: A fully-featured, extensible client for the Let's Encrypt CA
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -81,7 +81,7 @@ install -d -m0755 %{buildroot}%{_localstatedir}/log/letsencrypt
|
|||||||
install -d -m0755 %{buildroot}%{_sysconfdir}/cron.weekly
|
install -d -m0755 %{buildroot}%{_sysconfdir}/cron.weekly
|
||||||
cat > %{buildroot}%{_sysconfdir}/cron.weekly/certbot << _EOF
|
cat > %{buildroot}%{_sysconfdir}/cron.weekly/certbot << _EOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
certbot renew
|
# Using certbot-renew.timer but ensuring web servers reload at least once per week
|
||||||
systemctl -q is-enabled httpd >/dev/null && systemctl reload httpd
|
systemctl -q is-enabled httpd >/dev/null && systemctl reload httpd
|
||||||
systemctl -q is-enabled nginx >/dev/null && systemctl reload nginx
|
systemctl -q is-enabled nginx >/dev/null && systemctl reload nginx
|
||||||
_EOF
|
_EOF
|
||||||
@ -89,7 +89,17 @@ _EOF
|
|||||||
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/certbot-renew.service
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/certbot-renew.service
|
||||||
install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/certbot-renew.timer
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/certbot-renew.timer
|
||||||
|
|
||||||
ln -s %{python310_sitelib}/certbot_apache/_
|
%post
|
||||||
|
%systemd_post certbot-renew.timer
|
||||||
|
:
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun certbot-renew.timer
|
||||||
|
:
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun certbot-renew.timer
|
||||||
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -120,6 +130,9 @@ ln -s %{python310_sitelib}/certbot_apache/_
|
|||||||
%{python3_sitelib}/certbot_nginx/*
|
%{python3_sitelib}/certbot_nginx/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 13 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.0-2mamba
|
||||||
|
- enable certbot-renew.timer, modify cron.weekly/certbot to only reload web servers
|
||||||
|
|
||||||
* Sat Apr 06 2024 Automatic Build System <autodist@openmamba.org> 2.10.0-1mamba
|
* Sat Apr 06 2024 Automatic Build System <autodist@openmamba.org> 2.10.0-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user