v1.3.4
systemd.path uses inotify to watch changes so md-renewed-install.path is only activated on non-shared storage or on same host in shared storage enviroment.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
Name: md-renewed
|
||||
Version: 1.2.9
|
||||
Version: 1.3.4
|
||||
Release: 1%{?dist}
|
||||
Summary: Restart service on Apache module mod_md certificate renewal
|
||||
License: MIT
|
||||
@@ -11,6 +11,9 @@ Source0: md-renewed
|
||||
Source1: md-message
|
||||
Source2: md-renewed.path
|
||||
Source3: md-renewed.service
|
||||
Source5: md-renewed-install
|
||||
Source6: md-renewed-install.path
|
||||
Source7: md-renewed-install.service
|
||||
|
||||
Source10: md-renewed-httpd.conf
|
||||
Source11: md-renewed.conf
|
||||
@@ -33,10 +36,13 @@ Restart service on Apache module mod_md certificate renewal
|
||||
%{__install} -d -m 0755 %{buildroot}%{_libexecdir}/md-renewed
|
||||
%{__install} -m 0755 %{SOURCE0} %{buildroot}%{_libexecdir}/md-renewed/md-renewed
|
||||
%{__install} -m 0755 %{SOURCE1} %{buildroot}%{_libexecdir}/md-renewed/md-message
|
||||
%{__install} -m 0755 %{SOURCE5} %{buildroot}%{_libexecdir}/md-renewed/md-renewed-install
|
||||
|
||||
%{__install} -d -m 0755 %{buildroot}%{_unitdir}
|
||||
%{__install} -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/
|
||||
%{__install} -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/
|
||||
%{__install} -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/
|
||||
%{__install} -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/
|
||||
|
||||
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/httpd/conf.d
|
||||
%{__install} -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/httpd/conf.d/md-renewed.conf
|
||||
@@ -50,20 +56,25 @@ Restart service on Apache module mod_md certificate renewal
|
||||
%{__install} -m 0755 %{SOURCE22} %{buildroot}%{_sysconfdir}/md-renewed/example.com/
|
||||
|
||||
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/
|
||||
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/errored
|
||||
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/installed
|
||||
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/installing
|
||||
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/renewed
|
||||
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/renewing
|
||||
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/errored
|
||||
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/ocsp-renewed
|
||||
%{__install} -d -m 0775 %{buildroot}%{_sharedstatedir}/httpd/md-renewed/ocsp-errored
|
||||
|
||||
%post
|
||||
%systemd_post md-renewed.path
|
||||
%systemd_post md-renewed-install.path
|
||||
|
||||
%preun
|
||||
%systemd_preun md-renewed.path
|
||||
%systemd_preun md-renewed-install.path
|
||||
|
||||
%postun
|
||||
%systemd_postun md-renewed.path
|
||||
%systemd_postun md-renewed-install.path
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
@@ -76,15 +87,20 @@ Restart service on Apache module mod_md certificate renewal
|
||||
%config %{_sysconfdir}/httpd/conf.d/md-renewed.conf
|
||||
|
||||
%{_libexecdir}/md-renewed/md-renewed
|
||||
%{_libexecdir}/md-renewed/md-renewed-install
|
||||
%{_libexecdir}/md-renewed/md-message
|
||||
|
||||
%{_unitdir}/md-renewed.service
|
||||
%{_unitdir}/md-renewed-install.service
|
||||
%{_unitdir}/md-renewed.path
|
||||
%{_unitdir}/md-renewed-install.path
|
||||
|
||||
%dir %attr(-, root, apache) %{_sharedstatedir}/httpd/md-renewed/
|
||||
%dir %attr(-, root, apache) %{_sharedstatedir}/httpd/md-renewed/errored
|
||||
%dir %attr(-, root, apache) %{_sharedstatedir}/httpd/md-renewed/installed
|
||||
%dir %attr(-, root, apache) %{_sharedstatedir}/httpd/md-renewed/installing
|
||||
%dir %attr(-, root, apache) %{_sharedstatedir}/httpd/md-renewed/renewed
|
||||
%dir %attr(-, root, apache) %{_sharedstatedir}/httpd/md-renewed/renewing
|
||||
%dir %attr(-, root, apache) %{_sharedstatedir}/httpd/md-renewed/errored
|
||||
%dir %attr(-, root, apache) %{_sharedstatedir}/httpd/md-renewed/ocsp-renewed
|
||||
%dir %attr(-, root, apache) %{_sharedstatedir}/httpd/md-renewed/ocsp-errored
|
||||
|
||||
|
||||
Reference in New Issue
Block a user