Accepting request 855950 from home:gladiac:mailman3

- Add missing services and timers to systemd

OBS-URL: https://build.opensuse.org/request/show/855950
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailman?expand=0&rev=33
This commit is contained in:
Petr Gajdos 2020-12-15 09:12:34 +00:00 committed by Git OBS Bridge
parent cd799458ea
commit ce5a76d70b
2 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 15 08:57:37 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
- Add missing services and timers to systemd
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Nov 28 17:49:08 UTC 2020 - Michael Ströder <michael@stroeder.com> Sat Nov 28 17:49:08 UTC 2020 - Michael Ströder <michael@stroeder.com>

View File

@ -209,20 +209,28 @@ getent passwd %{mailman_user} >/dev/null || \
%{_sbindir}/useradd -r -g %{mailman_group} -s /sbin/nologin \ %{_sbindir}/useradd -r -g %{mailman_group} -s /sbin/nologin \
-c "mailman daemon user" -d %{mailman_homedir} %{mailman_user} -c "mailman daemon user" -d %{mailman_homedir} %{mailman_user}
%{_sbindir}/usermod -g %{mailman_group} %{mailman_user} >/dev/null %{_sbindir}/usermod -g %{mailman_group} %{mailman_user} >/dev/null
%service_add_pre %{mailman_name}.service %service_add_pre %{mailman_name}.service \
%{mailman_name}-digest.service \
%{mailman_name}-digest.timer
%post %post
%python_install_alternative master %python_install_alternative master
%python_install_alternative mailman %python_install_alternative mailman
%python_install_alternative runner %python_install_alternative runner
%tmpfiles_create %{_tmpfilesdir}/%{mailman_name}.conf %tmpfiles_create %{_tmpfilesdir}/%{mailman_name}.conf
%service_add_post %{mailman_name}.service %service_add_post %{mailman_name}.service \
%{mailman_name}-digest.service \
%{mailman_name}-digest.timer
%preun %preun
%service_del_preun %{mailman_name}.service %service_del_preun %{mailman_name}.service \
%{mailman_name}-digest.service \
%{mailman_name}-digest.timer
%postun %postun
%service_del_postun %{mailman_name}.service %service_del_postun %{mailman_name}.service \
%{mailman_name}-digest.service \
%{mailman_name}-digest.timer
%python_uninstall_alternative master %python_uninstall_alternative master
%python_uninstall_alternative mailman %python_uninstall_alternative mailman
%python_uninstall_alternative runner %python_uninstall_alternative runner