From df505b7816890172f977598f9c72a03d532055bd Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 13 May 2024 19:42:17 +0200 Subject: [PATCH] enable certbot-renew.timer, modify cron.weekly/certbot to only reload web servers [release 2.10.0-2mamba;Mon May 13 2024] --- certbot.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/certbot.spec b/certbot.spec index 109efc5..9793b24 100644 --- a/certbot.spec +++ b/certbot.spec @@ -1,6 +1,6 @@ Name: certbot Version: 2.10.0 -Release: 1mamba +Release: 2mamba Summary: A fully-featured, extensible client for the Let's Encrypt CA Group: System/Libraries Vendor: openmamba @@ -81,7 +81,7 @@ install -d -m0755 %{buildroot}%{_localstatedir}/log/letsencrypt install -d -m0755 %{buildroot}%{_sysconfdir}/cron.weekly cat > %{buildroot}%{_sysconfdir}/cron.weekly/certbot << _EOF #!/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 nginx >/dev/null && systemctl reload nginx _EOF @@ -89,7 +89,17 @@ _EOF install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/certbot-renew.service 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 %defattr(-,root,root) @@ -120,6 +130,9 @@ ln -s %{python310_sitelib}/certbot_apache/_ %{python3_sitelib}/certbot_nginx/* %changelog +* Mon May 13 2024 Silvan Calarco 2.10.0-2mamba +- enable certbot-renew.timer, modify cron.weekly/certbot to only reload web servers + * Sat Apr 06 2024 Automatic Build System 2.10.0-1mamba - automatic version update by autodist