create jabber user and group [release 2.3.2-3mamba;Fri Mar 06 2015]

This commit is contained in:
Silvan Calarco 2024-01-06 00:00:29 +01:00
parent 68d098ee43
commit eb08df6ae0

View File

@ -1,6 +1,9 @@
%define jabber_groupid 65438
%define jabber_userid 65438
Name: jabberd Name: jabberd
Version: 2.3.2 Version: 2.3.2
Release: 2mamba Release: 3mamba
Summary: JabberD XMPP Server Summary: JabberD XMPP Server
Group: System/Servers Group: System/Servers
Vendor: openmamba Vendor: openmamba
@ -87,6 +90,14 @@ MySQL storage support for %{name}.
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%pre
if [ $1 -ge 1 ]; then
groupadd jabber -g %{jabber_groupid} 2>/dev/null
useradd -u %{jabber_userid} -c 'Jabber service' -d /dev/null -g jabber \
-s /bin/false jabber 2>/dev/null
fi
exit 0
%post %post
%systemd_post jabberd-c2s %systemd_post jabberd-c2s
%systemd_post jabberd-router %systemd_post jabberd-router
@ -101,6 +112,10 @@ MySQL storage support for %{name}.
%systemd_preun jabberd-s2s %systemd_preun jabberd-s2s
%systemd_preun jabberd-sm %systemd_preun jabberd-sm
%systemd_preun jabberd %systemd_preun jabberd
if [ $1 -eq 0 ]; then
userdel jabber 2>/dev/null
groupdel jabber 2>/dev/null
fi
: :
%postun %postun
@ -259,6 +274,9 @@ MySQL storage support for %{name}.
%doc tools/db-setup.mysql tools/db-update.mysql %doc tools/db-setup.mysql tools/db-update.mysql
%changelog %changelog
* Fri Mar 06 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.2-3mamba
- create jabber user and group
* Thu Mar 05 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.2-2mamba * Thu Mar 05 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.2-2mamba
- enable db backend plugins - enable db backend plugins