[packages/letsencrypt.sh] - try to renew certs every month
arekm
arekm at pld-linux.org
Sat May 14 20:18:29 CEST 2016
commit 598b2b598759061e9ef7a4082583e7655289fcbe
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat May 14 20:17:38 2016 +0200
- try to renew certs every month
letsencrypt.sh.crontab | 2 ++
letsencrypt.sh.spec | 5 +++++
2 files changed, 7 insertions(+)
---
diff --git a/letsencrypt.sh.spec b/letsencrypt.sh.spec
index 4cbbc9c..d06abad 100644
--- a/letsencrypt.sh.spec
+++ b/letsencrypt.sh.spec
@@ -10,6 +10,7 @@ Source1: apache.conf
Source2: lighttpd.conf
Source3: config.sh
Source4: domains.txt
+Source5: letsencrypt.sh.crontab
Patch0: pld.patch
URL: https://github.com/lukas2511/letsencrypt.sh
BuildRequires: rpmbuild(macros) >= 1.713
@@ -48,6 +49,7 @@ Current features:
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/{acme-challenges,certs}}
+install -d $RPM_BUILD_ROOT/etc/cron.d
install -p letsencrypt.sh $RPM_BUILD_ROOT%{_sbindir}
@@ -57,6 +59,8 @@ cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}
cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
+cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/cron.d/%{name}
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -81,6 +85,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.md CHANGELOG LICENSE
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
%dir %attr(750,root,http) %{_sysconfdir}
%dir %attr(700,root,root) %{_sysconfdir}/certs
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
diff --git a/letsencrypt.sh.crontab b/letsencrypt.sh.crontab
new file mode 100644
index 0000000..3e68dff
--- /dev/null
+++ b/letsencrypt.sh.crontab
@@ -0,0 +1,2 @@
+# every month
+0 0 1 * * /usr/sbin/letsencrypt.sh -c
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/letsencrypt.sh.git/commitdiff/598b2b598759061e9ef7a4082583e7655289fcbe
More information about the pld-cvs-commit
mailing list